[Modify] Polish it

This commit is contained in:
sta 2017-11-23 16:34:58 +09:00
parent 74fe94ef05
commit f981eb7287

View File

@ -2305,16 +2305,19 @@ namespace WebSocketSharp
try {
if (!acceptHandshake ())
return;
_readyState = WebSocketState.Open;
}
catch (Exception ex) {
_logger.Fatal (ex.ToString ());
fatal ("An exception has occurred while accepting.", ex);
_logger.Fatal (ex.Message);
_logger.Debug (ex.ToString ());
var msg = "An exception has occurred while attempting to accept.";
fatal (msg, ex);
return;
}
_readyState = WebSocketState.Open;
open ();
}