[Modify] Add it
This commit is contained in:
parent
cc8fc3e4a9
commit
18e29b9f93
@ -941,6 +941,17 @@ namespace WebSocketSharp
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void close (ushort code, string reason)
|
||||||
|
{
|
||||||
|
if (code == 1005) { // == no status
|
||||||
|
close (new CloseEventArgs (), true, true, false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var send = !code.IsReserved ();
|
||||||
|
close (new CloseEventArgs (code, reason), send, send, false);
|
||||||
|
}
|
||||||
|
|
||||||
private void close (CloseEventArgs e, bool send, bool receive, bool received)
|
private void close (CloseEventArgs e, bool send, bool receive, bool received)
|
||||||
{
|
{
|
||||||
lock (_forState) {
|
lock (_forState) {
|
||||||
|
Loading…
Reference in New Issue
Block a user