websocket-sharp icon indicating copy to clipboard operation
websocket-sharp copied to clipboard

Fixed unhandled exception when cancel is called on the CancellationToken

Open sam1308 opened this issue 7 years ago • 1 comments

Hi, first of all great work!

Code to reproduce:

var cts = new CancellationTokenSource();
var websocket = new WebSocket("ws://1.2.3.4/dummy", cts.Token);

// After any moment in time
cts.Cancel(); // this causes an uncaught TaskCancelledException

Which led me to the async void lambda expression ;)

sam1308 avatar Mar 08 '17 15:03 sam1308

Any update on this pull request?

Xilconic avatar Mar 05 '18 13:03 Xilconic