[Modify] Use Fatal
This commit is contained in:
parent
f472e91515
commit
d0989cb7c8
@ -1097,10 +1097,7 @@ namespace WebSocketSharp
|
||||
reason = wsex.Message;
|
||||
}
|
||||
|
||||
if (code == CloseStatusCode.Abnormal || code == CloseStatusCode.TlsHandshakeFailure)
|
||||
_logger.Fatal (exception.ToString ());
|
||||
else
|
||||
_logger.Error (reason);
|
||||
_logger.Fatal (exception.ToString ());
|
||||
|
||||
error (message ?? code.GetMessage (), exception);
|
||||
if (!_client && _readyState == WebSocketState.Connecting) {
|
||||
|
Loading…
Reference in New Issue
Block a user