Avoid some closure allocations in SocketOutput

This commit is contained in:
Stephen Halter 2015-11-10 15:46:28 -08:00
parent 59cdd60af6
commit fc346f7768
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}