[Modify] Polish it
This commit is contained in:
parent
0a3ea71729
commit
b4a9272f2a
@ -675,25 +675,9 @@ namespace WebSocketSharp.Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
set {
|
set {
|
||||||
string msg;
|
|
||||||
if (!value.CheckWaitTime (out msg))
|
|
||||||
throw new ArgumentException (msg, "value");
|
|
||||||
|
|
||||||
if (!canSet (out msg)) {
|
|
||||||
_log.Warn (msg);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
lock (_sync) {
|
|
||||||
if (!canSet (out msg)) {
|
|
||||||
_log.Warn (msg);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
_services.WaitTime = value;
|
_services.WaitTime = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the management function for the WebSocket services
|
/// Gets the management function for the WebSocket services
|
||||||
|
Loading…
Reference in New Issue
Block a user