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