[Modify] Polish it
This commit is contained in:
parent
4461c7afbc
commit
01148aaa46
@ -286,8 +286,11 @@ namespace WebSocketSharp.Server
|
||||
}
|
||||
|
||||
set {
|
||||
if (value <= TimeSpan.Zero)
|
||||
throw new ArgumentOutOfRangeException ("value", "Zero or less.");
|
||||
if (value <= TimeSpan.Zero) {
|
||||
var msg = "It is zero or less.";
|
||||
|
||||
throw new ArgumentOutOfRangeException ("value", msg);
|
||||
}
|
||||
|
||||
lock (_sync) {
|
||||
string msg;
|
||||
|
Loading…
Reference in New Issue
Block a user