Skip to content

Commit dd58c69

Browse files
committed
[Modify] Polish it
1 parent 4c57ccf commit dd58c69

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

websocket-sharp/Server/HttpServer.cs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -711,23 +711,7 @@ public TimeSpan WaitTime {
711711
}
712712

713713
set {
714-
if (value <= TimeSpan.Zero)
715-
throw new ArgumentException ("Zero or less.", "value");
716-
717-
string msg;
718-
if (!canSet (out msg)) {
719-
_log.Warn (msg);
720-
return;
721-
}
722-
723-
lock (_sync) {
724-
if (!canSet (out msg)) {
725-
_log.Warn (msg);
726-
return;
727-
}
728-
729-
_services.WaitTime = value;
730-
}
714+
_services.WaitTime = value;
731715
}
732716
}
733717

0 commit comments

Comments
 (0)