|
@@ -289,6 +289,7 @@ static connectDeviceManager *connectDeviceManagerInstance = nil;
|
|
|
//[self.connectBtn setEnabled:NO];
|
|
|
//[self.connectBtn setTitle:@"连接中..." forState:UIControlStateDisabled];
|
|
|
|
|
|
+ [self.customCheckTimer invalidate];
|
|
|
self.customCheckTimer = [NSTimer scheduledTimerWithTimeInterval:1 repeats:YES block:^(NSTimer * _Nonnull timer){
|
|
|
|
|
|
if(self->didRuiyunLinkType){
|
|
@@ -308,8 +309,7 @@ static connectDeviceManager *connectDeviceManagerInstance = nil;
|
|
|
|
|
|
}];
|
|
|
|
|
|
- [[NSRunLoop currentRunLoop] addTimer:self.customCheckTimer forMode:NSRunLoopCommonModes];
|
|
|
- [[NSRunLoop currentRunLoop] run];
|
|
|
+ [[NSRunLoop mainRunLoop] addTimer:_customCheckTimer forMode:NSDefaultRunLoopMode];
|
|
|
}
|
|
|
|
|
|
- (void)disconnect {
|