Browse Source

1.连续不断重新登录 概率没有单点登录问题

huangxiaodong 2 years ago
parent
commit
b8434d7109

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

@@ -386,6 +386,13 @@ ComontAlretViewControllerDelegate>
     
     if(self.commandChannelManager){
         [self.commandChannelManager rc_close];
+        
+        self.commandChannelManager = nil;
+        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
+            [self opencommandChannelManagerrc_openURL];
+        });
+        
+        return;
     }
     
     KWeakSelf
@@ -1594,7 +1601,7 @@ NSDate *lastVideoTome;/*上一帧数据时间*/
         
         if(_isLoginAgainType ){
             [self opencommandChannelManagerrc_openURL];
-            _isLoginAgainType = false;
+            //_isLoginAgainType = false;
         }
     }
     else{