Skip to content

Commit 153cbe3

Browse files
committed
bugfix: method param name missing in define; this will lead to the invoke of the method miss the param name. Thanks to 404(a friend who reported the problem)!
1 parent 9847626 commit 153cbe3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

RealReachability/RealReachability.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ typedef NS_ENUM(NSInteger, WWANAccessType) {
7171
*
7272
* @param asyncHandler async request handler, return in 2 seconds(max limit).
7373
*/
74-
- (void)reachabilityWithBlock:(void (^)(ReachabilityStatus))asyncHandler;
74+
- (void)reachabilityWithBlock:(void (^)(ReachabilityStatus status))asyncHandler;
7575

7676
/**
7777
* Return current reachability immediately.

RealReachability/RealReachability.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ - (void)stopNotifier
153153

154154
#pragma mark - outside invoke
155155

156-
- (void)reachabilityWithBlock:(void (^)(ReachabilityStatus))asyncHandler
156+
- (void)reachabilityWithBlock:(void (^)(ReachabilityStatus status))asyncHandler
157157
{
158158
// logic optimization: no need to ping when Local connection unavailable!
159159
if ([GLocalConnection currentLocalConnectionStatus] == LC_UnReachable)

0 commit comments

Comments
 (0)