[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 {
var msg = _sessions.State.CheckIfAvailable (true, false, false) ??
value.CheckIfValidWaitTime ();
string msg;
if (!value.CheckWaitTime (out msg))
throw new ArgumentException (msg, "value");
if (msg != null) {
_log.Error (msg);
if (!canSet (out msg)) {
_log.Warn (msg);
return;
}