[Modify] Replace it

This commit is contained in:
sta 2021-12-15 19:48:47 +09:00
parent 55aaa620e5
commit 1de175fb5c

View File

@ -263,13 +263,8 @@ namespace WebSocketSharp.Server
} }
lock (_sync) { lock (_sync) {
string msg; if (!canSet ())
if (!canSet (out msg)) {
_log.Warn (msg);
return; return;
}
foreach (var host in _hosts.Values) foreach (var host in _hosts.Values)
host.WaitTime = value; host.WaitTime = value;