[Modify] Polish it

This commit is contained in:
sta 2017-09-21 19:42:07 +09:00
parent 0a3ea71729
commit b4a9272f2a

View File

@ -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