Accounting for ReadAsync throwing OperationCanceledException

This commit is contained in:
Pawel Kadluczka 2017-07-13 10:59:07 -07:00
parent 2854e868ec
commit 36ecbd9efd
1 changed files with 4 additions and 0 deletions

View File

@ -113,6 +113,10 @@ namespace Microsoft.AspNetCore.Sockets.Client
}
}
}
catch (OperationCanceledException)
{
_logger.ReceiveCanceled(_connectionId);
}
finally
{
readCancellationRegistration.Dispose();