[Modify] Replace it
This commit is contained in:
parent
b2934dc373
commit
370fd67894
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user