Issue when ConnectAsync() gets already cancelled CancellationToken #99
Labels
bug
Something isn't working
critical
This issue is critical and must be fixed as soon as possible
good first issue
Good for newcomers
Hey,
If I call ConnectAsync with already cancelled CancellationToken, I get stuck and keep waiting for the returned task to end for infinity time.
I think this is a problem that class DefaultRasDialCallbackHandler do not catch exceptions for all parts of code. Method WaitForHandleToBeTransferred() throws the OperationCanceledException but since this part of code has no handling of exceptions, it will never end the completionSource and the client will stay waiting for ConnectAsync to finish forever.
Maybe it could be fixed something like this:
The text was updated successfully, but these errors were encountered: