Cancellation check for sending needs to not be wrapped

This commit is contained in:
Adam Hathcock
2025-03-17 12:08:42 +00:00
parent 300a5627fd
commit 2fc0024cd2
@@ -89,11 +89,12 @@ public sealed class SerializeProcess(
public void ThrowIfFailed()
{
//always check for cancellation first
cancellationToken.ThrowIfCancellationRequested();
if (Exception is not null)
{
throw new SpeckleException("Error while sending", Exception);
}
cancellationToken.ThrowIfCancellationRequested();
}
private async Task WaitForSchedulerCompletion()