mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-21 21:33:01 +00:00
Fixed timing issue in query response processing
This commit is contained in:
@@ -187,11 +187,8 @@ namespace CryptoExchange.Net.Sockets
|
|||||||
return CallResult.SuccessResult;
|
return CallResult.SuccessResult;
|
||||||
|
|
||||||
CurrentResponses++;
|
CurrentResponses++;
|
||||||
if (CurrentResponses == RequiredResponses)
|
if (CurrentResponses == RequiredResponses)
|
||||||
{
|
Response = message.Data;
|
||||||
Completed = true;
|
|
||||||
Response = message.Data;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Result?.Success != false)
|
if (Result?.Success != false)
|
||||||
// If an error result is already set don't override that
|
// If an error result is already set don't override that
|
||||||
@@ -199,6 +196,7 @@ namespace CryptoExchange.Net.Sockets
|
|||||||
|
|
||||||
if (CurrentResponses == RequiredResponses)
|
if (CurrentResponses == RequiredResponses)
|
||||||
{
|
{
|
||||||
|
Completed = true;
|
||||||
_event.Set();
|
_event.Set();
|
||||||
if (ContinueAwaiter != null)
|
if (ContinueAwaiter != null)
|
||||||
await ContinueAwaiter.WaitAsync().ConfigureAwait(false);
|
await ContinueAwaiter.WaitAsync().ConfigureAwait(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user