[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 {
string msg;
if (!value.CheckWaitTime (out msg))
throw new ArgumentException (msg, "value");
if (value <= TimeSpan.Zero)
throw new ArgumentException ("Zero or less.", "value");
string msg;
if (!canSet (out msg)) {
_log.Warn (msg);
return;