Selaa lähdekoodia

1.同步链接不上 第二次不弹框问题

huangxiaodong 1 vuosi sitten
vanhempi
commit
fb5a9a7cbc

+ 3 - 3
创维盒子/双子星云手机/CloudPlayer/PlayerViewController.mm

@@ -233,9 +233,9 @@ ComontAlretViewControllerDelegate>
     
     _checkThridConnectNum += 1;
     
-    if(_checkThridConnectNum == 30 && [[connectDeviceManager shareInstance] curConnectDeviceState] <= 3 ){
+    if(_checkThridConnectNum >= 30 && [[connectDeviceManager shareInstance] curConnectDeviceState] <= 3 ){
         [self showNetErrorAlertFun:11];
-        
+        _checkThridConnectNum = 0;
 //        [_checkThridConnectTimer invalidate];
 //        return;
     }
@@ -2130,6 +2130,7 @@ NSDate *lastVideoTome;/*上一帧数据时间*/
 
 - (void)tryAgainInLinkFailFun
 {
+    linkFailAlretVC = nil;
     
     if([[connectDeviceManager shareInstance] curConnectDeviceState] <= 3)
     {
@@ -2147,7 +2148,6 @@ NSDate *lastVideoTome;/*上一帧数据时间*/
     reConnectAccount = 0;
     [self tryAgain];
     
-    linkFailAlretVC = nil;
 }
 
 BOOL inReconnect = NO;