[Modify] Polish it

This commit is contained in:
sta 2017-09-22 18:51:52 +09:00
parent 4c57ccfdbf
commit dd58c690a0

View File

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