[Modify] Polish it
This commit is contained in:
parent
eaca164eaf
commit
592912b10d
@ -515,12 +515,16 @@ namespace WebSocketSharp.Server
|
|||||||
|
|
||||||
internal void Stop (ushort code, string reason)
|
internal void Stop (ushort code, string reason)
|
||||||
{
|
{
|
||||||
if (code == 1005) { // == no status
|
if (code == 1005) {
|
||||||
stop (PayloadData.Empty, true);
|
stop (PayloadData.Empty, true);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
stop (new PayloadData (code, reason), !code.IsReserved ());
|
var payloadData = new PayloadData (code, reason);
|
||||||
|
var send = !code.IsReserved ();
|
||||||
|
|
||||||
|
stop (payloadData, send);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
Loading…
Reference in New Issue
Block a user