1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-10-14 23:21:48 +00:00

Fix for duplicate subscription coverage

This commit is contained in:
Jkorf
2026-10-13 10:37:49 +02:00
parent 4f25a6e7d6
commit 5135047097
@@ -1076,7 +1076,7 @@ namespace CryptoExchange.Net.Sockets.Default
=> _listeners.OfType<Subscription>().Any( => _listeners.OfType<Subscription>().Any(
x => x != subscription x => x != subscription
&& x.Active && x.Active
&& x.MessageRouter.Routes.All(l => subscription.MessageRouter.ContainsCheck(l))); && subscription.MessageRouter.Routes.All(l => x.MessageRouter.ContainsCheck(l)));
/// <summary> /// <summary>
/// Whether there is a subscription earlier in the list covering all the routes the subscription lists /// Whether there is a subscription earlier in the list covering all the routes the subscription lists
@@ -1088,7 +1088,7 @@ namespace CryptoExchange.Net.Sockets.Default
if (other == subscription) if (other == subscription)
return false; return false;
if (other.Active && other.MessageRouter.Routes.All(x => subscription.MessageRouter.ContainsCheck(x))) if (other.Active && subscription.MessageRouter.Routes.All(x => other.MessageRouter.ContainsCheck(x)))
return true; return true;
} }