[Modify] Polish it
This commit is contained in:
parent
10674ae9e8
commit
6ecbffbbf5
@ -588,13 +588,25 @@ namespace WebSocketSharp.Server
|
||||
}
|
||||
|
||||
set {
|
||||
var msg = _state.CheckIfAvailable (true, false, false) ?? value.CheckIfValidWaitTime ();
|
||||
if (msg != null) {
|
||||
string msg;
|
||||
if (!checkIfAvailable (true, false, false, true, out msg)) {
|
||||
_logger.Error (msg);
|
||||
return;
|
||||
}
|
||||
|
||||
_services.WaitTime = value;
|
||||
if (!value.CheckWaitTime (out msg)) {
|
||||
_logger.Error (msg);
|
||||
return;
|
||||
}
|
||||
|
||||
lock (_sync) {
|
||||
if (!checkIfAvailable (true, false, false, true, out msg)) {
|
||||
_logger.Error (msg);
|
||||
return;
|
||||
}
|
||||
|
||||
_services.WaitTime = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user