Skip to content

Commit

Permalink
use timeout time as latency if ping timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
lvyzhu committed Nov 6, 2019
1 parent 700e965 commit 5d310cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RealReachability/Ping/PingHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ - (void)pingTimeOut
{
for (void (^completion)(BOOL, NSTimeInterval) in self.completionBlocks)
{
completion(NO, 0);
completion(NO, self.timeout);
}
[self.completionBlocks removeAllObjects];
}
Expand Down

0 comments on commit 5d310cd

Please sign in to comment.