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