[Modify] Polish it
This commit is contained in:
parent
b9fe231a93
commit
6c172f7843
@ -275,15 +275,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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user