Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Commit 09bd0ea

Browse files
committed
Moved RequestStop outside If block
1 parent 37d8664 commit 09bd0ea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Microsoft.AspNetCore.Hosting/Internal/HostingApplication.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ public void DisposeContext(Context context, Exception exception)
6868
{
6969
_diagnosticSource.Write("Microsoft.AspNetCore.Hosting.EndRequest", new { httpContext = httpContext, timestamp = currentTimestamp });
7070
}
71-
72-
HostingEventSource.Log.RequestStop();
7371
}
7472
else
7573
{
@@ -84,9 +82,10 @@ public void DisposeContext(Context context, Exception exception)
8482
}
8583

8684
HostingEventSource.Log.UnhandledException();
87-
HostingEventSource.Log.RequestStop();
8885
}
8986

87+
HostingEventSource.Log.RequestStop();
88+
9089
context.Scope?.Dispose();
9190

9291
_httpContextFactory.Dispose(httpContext);

0 commit comments

Comments
 (0)