[Modify] Polish it
This commit is contained in:
parent
74fe94ef05
commit
f981eb7287
@ -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 ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user