1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-17 03:12:56 +00:00

Fixed state handling for subscriptions where queries do not get a response

This commit is contained in:
Jkorf
2026-01-20 15:19:42 +01:00
parent bc8faf9822
commit 96b3904266
2 changed files with 10 additions and 0 deletions
@@ -1249,6 +1249,13 @@ namespace CryptoExchange.Net.Sockets.Default
};
taskList.Add(SendAndWaitQueryAsync(subQuery));
if (!subQuery.ExpectsResponse)
{
// If there won't be an answer we can immediately set this
subscription.Status = SubscriptionStatus.Subscribed;
subscription.HandleSubQueryResponse(this, null);
}
}
await Task.WhenAll(taskList).ConfigureAwait(false);