[Modify] Replace it

This commit is contained in:
sta 2017-06-08 15:18:24 +09:00
parent f9abc4a89f
commit 9ce32f5af2

View File

@ -657,10 +657,10 @@ namespace WebSocketSharp.Server
} }
set { set {
string msg; if (value <= TimeSpan.Zero)
if (!value.CheckWaitTime (out msg)) throw new ArgumentException ("Zero or less.", "value");
throw new ArgumentException (msg, "value");
string msg;
if (!canSet (out msg)) { if (!canSet (out msg)) {
_log.Warn (msg); _log.Warn (msg);
return; return;