Skip to content

Commit 01148aa

Browse files
committed
[Modify] Polish it
1 parent 4461c7a commit 01148aa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

websocket-sharp/Server/WebSocketSessionManager.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,11 @@ public TimeSpan WaitTime {
286286
}
287287

288288
set {
289-
if (value <= TimeSpan.Zero)
290-
throw new ArgumentOutOfRangeException ("value", "Zero or less.");
289+
if (value <= TimeSpan.Zero) {
290+
var msg = "It is zero or less.";
291+
292+
throw new ArgumentOutOfRangeException ("value", msg);
293+
}
291294

292295
lock (_sync) {
293296
string msg;

0 commit comments

Comments
 (0)