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