[Modify] Polish it

This commit is contained in:
sta 2016-12-15 17:04:04 +09:00
parent a07928db96
commit 808f4160f7

View File

@ -1109,6 +1109,9 @@ namespace WebSocketSharp
if (send) {
var frame = WebSocketFrame.CreateCloseFrame (payloadData, _client);
sent = sendBytes (frame.ToArray ());
if (_client)
frame.Unmask ();
}
var wait = !received && sent && receive && _receivingExited != null;