[Modify] Move it

This commit is contained in:
sta 2022-01-05 20:21:57 +09:00
parent e65f761fbd
commit 5b496bdc99

View File

@ -964,6 +964,13 @@ namespace WebSocketSharp.Server
if (_state == ServerState.Start || _state == ServerState.ShuttingDown)
return;
if (_secure) {
string msg;
if (!checkCertificate (out msg))
throw new InvalidOperationException (msg);
}
_services.Start ();
try {
@ -1294,13 +1301,6 @@ namespace WebSocketSharp.Server
/// </exception>
public void Start ()
{
if (_secure) {
string msg;
if (!checkCertificate (out msg))
throw new InvalidOperationException (msg);
}
if (_state == ServerState.Start || _state == ServerState.ShuttingDown)
return;