|
|
@ -884,30 +884,6 @@ namespace WebSocketSharp.Server |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private void start (ServerSslConfiguration sslConfig) |
|
|
|
{ |
|
|
|
lock (_sync) { |
|
|
|
if (_state == ServerState.Start || _state == ServerState.ShuttingDown) |
|
|
|
return; |
|
|
|
|
|
|
|
_sslConfigInUse = sslConfig; |
|
|
|
_realmInUse = getRealm (); |
|
|
|
|
|
|
|
_services.Start (); |
|
|
|
|
|
|
|
try { |
|
|
|
startReceiving (); |
|
|
|
} |
|
|
|
catch { |
|
|
|
_services.Stop (1011, String.Empty); |
|
|
|
|
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
_state = ServerState.Start; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private void startReceiving () |
|
|
|
{ |
|
|
|
if (_reuseAddress) { |
|
|
|