[Modify] Throw exception

This commit is contained in:
sta 2017-02-11 16:35:52 +09:00
parent 6aa5bfe034
commit 886b5ac12d

View File

@ -1097,10 +1097,8 @@ namespace WebSocketSharp.Server
var sslConfig = getSslConfiguration ();
string msg;
if (!checkSslConfiguration (sslConfig, out msg)) {
_logger.Error (msg);
return;
}
if (!checkSslConfiguration (sslConfig, out msg))
throw new InvalidOperationException (msg);
start (sslConfig);
}