[Modify] It throws exception
This commit is contained in:
parent
c1551b8b6f
commit
aac634848e
@ -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 ();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user