[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 { try {
if (!acceptHandshake ()) if (!acceptHandshake ())
return; return;
_readyState = WebSocketState.Open;
} }
catch (Exception ex) { catch (Exception ex) {
_logger.Fatal (ex.ToString ()); _logger.Fatal (ex.Message);
fatal ("An exception has occurred while accepting.", ex); _logger.Debug (ex.ToString ());
var msg = "An exception has occurred while attempting to accept.";
fatal (msg, ex);
return; return;
} }
_readyState = WebSocketState.Open;
open (); open ();
} }