[Modify] Don't throw
This commit is contained in:
parent
944972c8bb
commit
07f85d6764
@ -1017,8 +1017,12 @@ namespace WebSocketSharp
|
||||
var res = sendHandshakeRequest ();
|
||||
|
||||
string msg;
|
||||
if (!checkHandshakeResponse (res, out msg))
|
||||
throw new WebSocketException (CloseStatusCode.ProtocolError, msg);
|
||||
if (!checkHandshakeResponse (res, out msg)) {
|
||||
_logger.Fatal (msg);
|
||||
fatal ("An error has occurred while connecting.", CloseStatusCode.ProtocolError);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if (_protocolsRequested)
|
||||
_protocol = res.Headers["Sec-WebSocket-Protocol"];
|
||||
|
Loading…
Reference in New Issue
Block a user