[Modify] Polish it
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user