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