[Modify] Polish it
This commit is contained in:
parent
4c57ccfdbf
commit
dd58c690a0
@ -711,25 +711,9 @@ namespace WebSocketSharp.Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
set {
|
set {
|
||||||
if (value <= TimeSpan.Zero)
|
|
||||||
throw new ArgumentException ("Zero or less.", "value");
|
|
||||||
|
|
||||||
string msg;
|
|
||||||
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