[Modify] Move it
This commit is contained in:
parent
e65f761fbd
commit
5b496bdc99
@ -964,6 +964,13 @@ namespace WebSocketSharp.Server
|
|||||||
if (_state == ServerState.Start || _state == ServerState.ShuttingDown)
|
if (_state == ServerState.Start || _state == ServerState.ShuttingDown)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (_secure) {
|
||||||
|
string msg;
|
||||||
|
|
||||||
|
if (!checkCertificate (out msg))
|
||||||
|
throw new InvalidOperationException (msg);
|
||||||
|
}
|
||||||
|
|
||||||
_services.Start ();
|
_services.Start ();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -1294,13 +1301,6 @@ namespace WebSocketSharp.Server
|
|||||||
/// </exception>
|
/// </exception>
|
||||||
public void Start ()
|
public void Start ()
|
||||||
{
|
{
|
||||||
if (_secure) {
|
|
||||||
string msg;
|
|
||||||
|
|
||||||
if (!checkCertificate (out msg))
|
|
||||||
throw new InvalidOperationException (msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_state == ServerState.Start || _state == ServerState.ShuttingDown)
|
if (_state == ServerState.Start || _state == ServerState.ShuttingDown)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user