From a926acc89cf9d0151cb626225074c274d036cc2a Mon Sep 17 00:00:00 2001 From: "dazi.dp" Date: Mon, 15 May 2017 19:24:01 +0800 Subject: [PATCH] fix warning --- BeeHive/BHWatchDog.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BeeHive/BHWatchDog.m b/BeeHive/BHWatchDog.m index 104875d..3be95ad 100644 --- a/BeeHive/BHWatchDog.m +++ b/BeeHive/BHWatchDog.m @@ -85,7 +85,7 @@ - (instancetype)initWithThreshold:(double)threshold strictMode:(BOOL)strictMode - (instancetype)initWIthThreshold:(double)threshold callBack:(watchdogFiredCallBack)callBack { - if ([self init]) { + if (self = [self init]) { self.threshold = 0.4;//默认间隔 self.threshold = threshold; self.pingThread = [[PingThread alloc] initWithThreshold:threshold handler:callBack];