From 8399910a6e4826902c512d0ffb7c1890670bbf83 Mon Sep 17 00:00:00 2001 From: David Fowler Date: Fri, 15 Jul 2016 15:14:25 -0700 Subject: [PATCH] PR feedback --- .../Internal/Http/Connection.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/Connection.cs b/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/Connection.cs index 82bff4c48e..024e79246b 100644 --- a/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/Connection.cs +++ b/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/Connection.cs @@ -29,7 +29,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http private static long _lastConnectionId = DateTime.UtcNow.Ticks; private readonly UvStreamHandle _socket; - private Frame _frame; + private readonly Frame _frame; private ConnectionFilterContext _filterContext; private LibuvStream _libuvStream; private FilteredStreamAdapter _filteredStreamAdapter; @@ -83,7 +83,6 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http _frame.SocketOutput = SocketOutput; _frame.Start(); - } else { @@ -139,8 +138,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http // called from a libuv thread. ThreadPool.Run(() => { - var connection = this; - connection._frame.Abort(); + _frame.Abort(); }); }