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