Protect against NullReferenceException in Frame.StopStreams()
This commit is contained in:
parent
b3aca0413c
commit
6cbbb73ca7
|
|
@ -159,10 +159,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
_application.DisposeContext(context, _applicationException);
|
_application.DisposeContext(context, _applicationException);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
// StopStreams should be called before the end of the "if (!_requestProcessingStopping)" block
|
||||||
|
// to ensure InitializeStreams has been called.
|
||||||
StopStreams();
|
StopStreams();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!_keepAlive)
|
if (!_keepAlive)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue