Skip to content

Commit 4c2c671

Browse files
committed
fix issue: 'UdpClientWrapper' - await CancelAsync instead of Cancel in async method
1 parent fd99132 commit 4c2c671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NetSdrClientApp/Networking/UdpClientWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public async Task StartListeningAsync()
4747
}
4848
finally
4949
{
50-
_cts?.Cancel();
50+
await _cts?.CancelAsync();
5151
_cts?.Dispose();
5252
}
5353
}

0 commit comments

Comments
 (0)