[Modify] Replace them

This commit is contained in:
sta 2016-12-16 17:03:42 +09:00
parent ee1c59a5f6
commit 52397e4c7a

View File

@ -1068,12 +1068,12 @@ namespace WebSocketSharp
} }
if (code == 1005) { // == no status if (code == 1005) { // == no status
closeAsync (new CloseEventArgs (), true, true, false); closeAsync (PayloadData.Empty, true, true, false);
return; return;
} }
var send = !code.IsReserved (); 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) private void closeAsync (CloseEventArgs e, bool send, bool receive, bool received)