[Modify] Polish it

This commit is contained in:
sta 2016-03-04 15:20:23 +09:00
parent b11d8a006d
commit c6b7063cb8

View File

@ -649,19 +649,20 @@ namespace WebSocketSharp
} }
try { try {
if (acceptHandshake ()) { if (!acceptHandshake ())
return false;
_readyState = WebSocketState.Open; _readyState = WebSocketState.Open;
return true; return true;
} }
}
catch (Exception ex) { catch (Exception ex) {
_logger.Fatal (ex.ToString ()); _logger.Fatal (ex.ToString ());
fatal ("An exception has occurred while accepting.", ex); fatal ("An exception has occurred while accepting.", ex);
}
return false; return false;
} }
} }
}
// As server // As server
private bool acceptHandshake () private bool acceptHandshake ()