[Modify] Replace it
This commit is contained in:
parent
0e2a5ae7db
commit
f047e07591
@ -129,10 +129,7 @@ namespace WebSocketSharp.Server
|
|||||||
|
|
||||||
internal void Stop (ushort code, string reason)
|
internal void Stop (ushort code, string reason)
|
||||||
{
|
{
|
||||||
var e = new CloseEventArgs (code, reason);
|
Sessions.Stop (code, reason);
|
||||||
var send = !code.IsReserved ();
|
|
||||||
var bytes = send ? WebSocketFrame.CreateCloseFrame (e.PayloadData, false).ToArray () : null;
|
|
||||||
Sessions.Stop (e, bytes, send);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
Loading…
Reference in New Issue
Block a user