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

Fix for deadlocking socket receive

This commit is contained in:
Jkorf
2021-10-08 10:18:51 +02:00
parent ac269e8368
commit dadf62c280
2 changed files with 1 additions and 144 deletions
@@ -44,7 +44,7 @@ namespace CryptoExchange.Net.Objects
}
else
{
var tcs = new TaskCompletionSource<bool>();
var tcs = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
if(timeout != null)
{
var cancellationSource = new CancellationTokenSource(timeout.Value);