[Modify] Replace it

This commit is contained in:
sta 2021-12-15 19:46:15 +09:00
parent 6760f3237e
commit 55aaa620e5

View File

@ -201,13 +201,8 @@ namespace WebSocketSharp.Server
set { set {
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.KeepClean = value; host.KeepClean = value;