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

Fixed timing issue in query response processing

This commit is contained in:
Jkorf
2025-08-07 14:15:18 +02:00
parent 4a9058fc1c
commit 40977ebdbe
+3 -5
View File
@@ -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);