[Modify] Polish it
This commit is contained in:
parent
c095eb38c4
commit
6620690afe
@ -993,22 +993,26 @@ namespace WebSocketSharp.Server
|
||||
{
|
||||
if (_state == ServerState.Start) {
|
||||
_log.Info ("The server has already started.");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (_state == ServerState.ShuttingDown) {
|
||||
_log.Warn ("The server is shutting down.");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
lock (_sync) {
|
||||
if (_state == ServerState.Start) {
|
||||
_log.Info ("The server has already started.");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (_state == ServerState.ShuttingDown) {
|
||||
_log.Warn ("The server is shutting down.");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user