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

Error handling update

This commit is contained in:
Jan Korf
2025-08-18 11:03:26 +02:00
committed by GitHub
parent 40977ebdbe
commit 3e365f83c9
34 changed files with 567 additions and 136 deletions
+2 -2
View File
@@ -188,7 +188,7 @@ namespace CryptoExchange.Net.Sockets
CurrentResponses++;
if (CurrentResponses == RequiredResponses)
Response = message.Data;
Response = message.Data;
if (Result?.Success != false)
// If an error result is already set don't override that
@@ -219,7 +219,7 @@ namespace CryptoExchange.Net.Sockets
return;
Completed = true;
Result = new CallResult<THandlerResponse>(new CancellationRequestedError(null, "Query timeout", null));
Result = new CallResult<THandlerResponse>(new TimeoutError());
ContinueAwaiter?.Set();
_event.Set();
}