[Modify] Replace them

This commit is contained in:
sta 2016-12-16 16:49:40 +09:00
parent 240310fbe7
commit b70016c5af

View File

@ -968,12 +968,12 @@ namespace WebSocketSharp
} }
if (code == 1005) { // == no status if (code == 1005) { // == no status
close (new CloseEventArgs (), true, true, false); close (PayloadData.Empty, true, true, false);
return; return;
} }
var send = !code.IsReserved (); var send = !code.IsReserved ();
close (new CloseEventArgs (code, reason), send, send, false); close (new PayloadData (code, reason), send, send, false);
} }
private void close (CloseEventArgs e, bool send, bool receive, bool received) private void close (CloseEventArgs e, bool send, bool receive, bool received)