1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-20 04:42:57 +00:00

Added support for requiring multiple responses for queries, fixed possible exception when closing connection, added ToString override DataEvent object

This commit is contained in:
JKorf
2024-07-16 15:23:09 +02:00
parent 17d85fdd85
commit a85bfb4432
11 changed files with 50 additions and 12 deletions
@@ -269,7 +269,7 @@ namespace CryptoExchange.Net.Clients
{
_logger.FailedToSubscribe(socketConnection.SocketId, subResult.Error?.ToString());
// If this was a timeout we still need to send an unsubscribe to prevent messages coming in later
await socketConnection.CloseAsync(subscription, isTimeout).ConfigureAwait(false);
await socketConnection.CloseAsync(subscription).ConfigureAwait(false);
return new CallResult<UpdateSubscription>(subResult.Error!);
}
}