1
0
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:
Jkorf
2021-08-20 14:07:58 +02:00
parent f33c87b4f2
commit 7e2f466ada
3 changed files with 16 additions and 145 deletions
@@ -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;