[Modify] Polish it
This commit is contained in:
parent
0ed6179c00
commit
328e521249
@ -851,17 +851,8 @@ namespace WebSocketSharp.Server
|
|||||||
private void start (ServerSslConfiguration sslConfig)
|
private void start (ServerSslConfiguration sslConfig)
|
||||||
{
|
{
|
||||||
lock (_sync) {
|
lock (_sync) {
|
||||||
if (_state == ServerState.Start) {
|
if (_state == ServerState.Start || _state == ServerState.ShuttingDown)
|
||||||
_log.Info ("The server has already started.");
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
if (_state == ServerState.ShuttingDown) {
|
|
||||||
_log.Warn ("The server is shutting down.");
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
_sslConfigInUse = sslConfig;
|
_sslConfigInUse = sslConfig;
|
||||||
_realmInUse = getRealm ();
|
_realmInUse = getRealm ();
|
||||||
|
Loading…
Reference in New Issue
Block a user