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