Fix a bug that enables to send any 'Reserved value' close status code

This commit is contained in:
sta 2014-10-23 11:45:00 +09:00
parent d156dffd55
commit cccafcb584

View File

@ -666,7 +666,7 @@ namespace WebSocketSharp
_logger.Trace ("Start closing the connection.");
e.WasClean = closeHandshake (
WebSocketFrame.CreateCloseFrame (e.PayloadData, _client).ToByteArray (),
send ? WebSocketFrame.CreateCloseFrame (e.PayloadData, _client).ToByteArray () : null,
wait ? _waitTime : TimeSpan.Zero,
_client ? (Action) releaseClientResources : releaseServerResources);