You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In FtpConnection.ReadFromStreamAsync, readTask is started using the cancellation token passed into the method, but tcs is also created which has its result set when the cancellation token is cancelled:
This can cause resultTask to complete when tcs.Task is complete, and the exception from the cancellation of readTask is never observed. causing an UnobservedTaskException.
The text was updated successfully, but these errors were encountered:
In FtpConnection.ReadFromStreamAsync,
readTask
is started using the cancellation token passed into the method, buttcs
is also created which has its result set when the cancellation token is cancelled:This can cause
resultTask
to complete whentcs.Task
is complete, and the exception from the cancellation ofreadTask
is never observed. causing an UnobservedTaskException.The text was updated successfully, but these errors were encountered: