[Modify] It throws exception
This commit is contained in:
parent
c1551b8b6f
commit
aac634848e
@ -1059,13 +1059,14 @@ namespace WebSocketSharp.Server
|
||||
/// <summary>
|
||||
/// Starts receiving the HTTP requests.
|
||||
/// </summary>
|
||||
/// <exception cref="InvalidOperationException">
|
||||
/// There is no certificate.
|
||||
/// </exception>
|
||||
public void Start ()
|
||||
{
|
||||
var msg = checkIfCertificateExists ();
|
||||
if (msg != null) {
|
||||
_log.Error (msg);
|
||||
return;
|
||||
}
|
||||
string msg;
|
||||
if (!checkCertificate (out msg))
|
||||
throw new InvalidOperationException (msg);
|
||||
|
||||
start ();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user