[Modify] Replace it

This commit is contained in:
sta
2016-09-19 15:08:22 +09:00
parent f895d249a2
commit 80b969cc54
+1 -7
View File
@@ -2470,13 +2470,7 @@ namespace WebSocketSharp
return;
}
if (code == CloseStatusCode.NoStatus) {
closeAsync (new CloseEventArgs (), true, true, false);
return;
}
var send = !code.IsReserved ();
closeAsync (new CloseEventArgs (code), send, send, false);
closeAsync ((ushort) code, null);
}
/// <summary>