1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-10-21 18:40:57 +00:00

Fixed subscription without any predefined routes failing to subscribe

This commit is contained in:
Jkorf
2026-10-19 08:39:39 +02:00
parent 186f30d4b5
commit ee53dfe139
@@ -1083,6 +1083,10 @@ namespace CryptoExchange.Net.Sockets.Default
/// </summary> /// </summary>
protected bool IsCoveredByEarlierSubscription(Subscription subscription) protected bool IsCoveredByEarlierSubscription(Subscription subscription)
{ {
if (subscription.MessageRouter.Routes.Length == 0)
// Can be subscription which only knows what to listen to after receiving the subscribe response, for example Bitfinex
return false;
foreach (var other in _listeners.OfType<Subscription>()) foreach (var other in _listeners.OfType<Subscription>())
{ {
if (other == subscription) if (other == subscription)