[Modify] Replace it

This commit is contained in:
sta 2017-02-23 15:30:43 +09:00
parent b2934dc373
commit 370fd67894

View File

@ -109,11 +109,12 @@ namespace WebSocketSharp.Server
} }
set { set {
var msg = _sessions.State.CheckIfAvailable (true, false, false) ?? string msg;
value.CheckIfValidWaitTime (); if (!value.CheckWaitTime (out msg))
throw new ArgumentException (msg, "value");
if (msg != null) { if (!canSet (out msg)) {
_log.Error (msg); _log.Warn (msg);
return; return;
} }