Browse Source

1.优化信令通道首次发消息时间

huangxiaodong 1 year ago
parent
commit
1d42c1611e

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

@@ -505,7 +505,7 @@ ComontAlretViewControllerDelegate>
         [self.commandChannelManager rc_openURL:instructionsChannelUrl connected:^{
             HLog(@"WebSocket11111指令通道连接成功11111 url = %@ ",instructionsChannelUrl);
             if (weakSelf.commandChannelManager.rc_socketStatus == RCSocketCloudPhoneStatusConnected){
-                dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
+                dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
                     
                     [weakSelf handlAllMsgAfterDidLinkFun];