[Modify] Replace it

This commit is contained in:
sta 2016-01-19 14:44:16 +09:00
parent a11582d104
commit ae2e23687b

View File

@ -669,11 +669,8 @@ namespace WebSocketSharp
var msg = checkIfValidHandshakeRequest (_context);
if (msg != null) {
_logger.Error (msg);
error ("An error has occurred while accepting.", null);
Close (HttpStatusCode.BadRequest);
return false;
sendHttpResponse (createHandshakeCloseResponse (HttpStatusCode.BadRequest));
throw new WebSocketException (CloseStatusCode.ProtocolError, msg);
}
if (_protocol != null &&