[Modify] It throws exception

This commit is contained in:
sta 2017-06-03 16:22:20 +09:00
parent c1551b8b6f
commit aac634848e

View File

@ -1059,13 +1059,14 @@ namespace WebSocketSharp.Server
/// <summary> /// <summary>
/// Starts receiving the HTTP requests. /// Starts receiving the HTTP requests.
/// </summary> /// </summary>
/// <exception cref="InvalidOperationException">
/// There is no certificate.
/// </exception>
public void Start () public void Start ()
{ {
var msg = checkIfCertificateExists (); string msg;
if (msg != null) { if (!checkCertificate (out msg))
_log.Error (msg); throw new InvalidOperationException (msg);
return;
}
start (); start ();
} }