Skip to content

Commit c355f31

Browse files
committed
fix exceptions
1 parent 208ad0e commit c355f31

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/EverscaleNet.Adapter.Base/EverClientAdapterBase.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,10 @@ private async Task<string> Request(string method, string requestJson,
258258
return await tcs.Task;
259259
}
260260

261-
throw new EverClientException("Execution timeout expired or cancellation requested");
261+
if (cancellationToken.IsCancellationRequested) {
262+
throw new TaskCanceledException();
263+
}
264+
265+
throw new TimeoutException();
262266
}
263267
}

0 commit comments

Comments
 (0)