[Modify] Polish it

This commit is contained in:
sta 2021-11-04 20:07:39 +09:00
parent 18616fb8aa
commit 4461c7afbc

View File

@ -289,15 +289,12 @@ namespace WebSocketSharp.Server
if (value <= TimeSpan.Zero)
throw new ArgumentOutOfRangeException ("value", "Zero or less.");
string msg;
if (!canSet (out msg)) {
_log.Warn (msg);
return;
}
lock (_sync) {
string msg;
if (!canSet (out msg)) {
_log.Warn (msg);
return;
}