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