diff --git a/src/Microsoft.AspNet.Server.Kestrel/Http/SocketOutput.cs b/src/Microsoft.AspNet.Server.Kestrel/Http/SocketOutput.cs index 2871341dbd..d2534206e1 100644 --- a/src/Microsoft.AspNet.Server.Kestrel/Http/SocketOutput.cs +++ b/src/Microsoft.AspNet.Server.Kestrel/Http/SocketOutput.cs @@ -293,7 +293,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http var _this = (WriteContext)state; _this.WriteStatus = status; _this.WriteError = error; - DoShutdownIfNeeded(); + _this.DoShutdownIfNeeded(); }, this); } @@ -316,9 +316,9 @@ namespace Microsoft.AspNet.Server.Kestrel.Http var _this = (WriteContext)state; _this.ShutdownSendStatus = status; - Self._log.ConnectionWroteFin(Self._connectionId, status); + _this.Self._log.ConnectionWroteFin(Self._connectionId, status); - DoDisconnectIfNeeded(); + _this.DoDisconnectIfNeeded(); }, this); }