[Modify] Replace it

This commit is contained in:
sta 2017-01-12 17:15:00 +09:00
parent 0e2a5ae7db
commit f047e07591

View File

@ -129,10 +129,7 @@ namespace WebSocketSharp.Server
internal void Stop (ushort code, string reason)
{
var e = new CloseEventArgs (code, reason);
var send = !code.IsReserved ();
var bytes = send ? WebSocketFrame.CreateCloseFrame (e.PayloadData, false).ToArray () : null;
Sessions.Stop (e, bytes, send);
Sessions.Stop (code, reason);
}
#endregion