mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-19 04:13:02 +00:00
Fix for socket connecting with a lot of tasks being created
This commit is contained in:
@@ -237,7 +237,10 @@ namespace CryptoExchange.Net.OrderBook
|
||||
|
||||
var startResult = await DoStartAsync().ConfigureAwait(false);
|
||||
if (!startResult)
|
||||
{
|
||||
Status = OrderBookStatus.Disconnected;
|
||||
return new CallResult<bool>(false, startResult.Error);
|
||||
}
|
||||
|
||||
subscription = startResult.Data;
|
||||
subscription.ConnectionLost += Reset;
|
||||
|
||||
Reference in New Issue
Block a user