[Modify] Polish it

This commit is contained in:
sta 2021-10-03 20:59:40 +09:00
parent b9fe231a93
commit 6c172f7843

View File

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