Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dazi.dp committed May 15, 2017
1 parent 74c900e commit a926acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BeeHive/BHWatchDog.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit a926acc

Please sign in to comment.