Don't log ODEs thrown from _abortedCts.Cancel
This commit is contained in:
parent
3c7431aa35
commit
174ec739bb
|
|
@ -199,7 +199,15 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
||||||
ConnectionControl.End(ProduceEndType.SocketDisconnect);
|
ConnectionControl.End(ProduceEndType.SocketDisconnect);
|
||||||
SocketInput.AbortAwaiting();
|
SocketInput.AbortAwaiting();
|
||||||
|
|
||||||
_abortedCts?.Cancel();
|
try
|
||||||
|
{
|
||||||
|
_abortedCts?.Cancel();
|
||||||
|
}
|
||||||
|
catch (ObjectDisposedException)
|
||||||
|
{
|
||||||
|
// Don't log ODEs thrown from _abortedCts.Cancel()
|
||||||
|
// If _abortedCts is disposed, the app has already completed.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue