Skip to content

Commit 2b63632

Browse files
committed
check timeout is at least 10
1 parent fe4b0f3 commit 2b63632

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

third_party/Reachability/ODWReachability.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,13 @@ -(ODWReachability *)initWithReachabilityRef:(SCNetworkReachabilityRef)ref
245245

246246
+(void)setTimeoutDurationInSeconds:(int)timeoutDuration
247247
{
248-
if (timeoutDuration > 0)
248+
if (timeoutDuration >= kTimeoutDurationInSeconds)
249249
{
250250
kTimeoutDurationInSeconds = timeoutDuration;
251251
}
252252
else
253253
{
254-
NSLog(@"Timeout duration must be positive.");
254+
NSLog(@"Timeout duration must be at least 10.");
255255
}
256256
}
257257

0 commit comments

Comments
 (0)