[Modify] Replace it
This commit is contained in:
parent
ce12c9ba5c
commit
8e1638231f
@ -2281,13 +2281,7 @@ namespace WebSocketSharp
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (code == (ushort) CloseStatusCode.NoStatus) {
|
close (code, null);
|
||||||
close (new CloseEventArgs (), true, true, false);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var send = !code.IsReserved ();
|
|
||||||
close (new CloseEventArgs (code), send, send, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user