[Modify] Replace them
This commit is contained in:
parent
ee1c59a5f6
commit
52397e4c7a
@ -1068,12 +1068,12 @@ namespace WebSocketSharp
|
||||
}
|
||||
|
||||
if (code == 1005) { // == no status
|
||||
closeAsync (new CloseEventArgs (), true, true, false);
|
||||
closeAsync (PayloadData.Empty, true, true, false);
|
||||
return;
|
||||
}
|
||||
|
||||
var send = !code.IsReserved ();
|
||||
closeAsync (new CloseEventArgs (code, reason), send, send, false);
|
||||
closeAsync (new PayloadData (code, reason), send, send, false);
|
||||
}
|
||||
|
||||
private void closeAsync (CloseEventArgs e, bool send, bool receive, bool received)
|
||||
|
Loading…
Reference in New Issue
Block a user