Explorar el Código

尝试修复读取数据库闪退 推测线程没保护好

huangxiaodong hace 1 año
padre
commit
b8c73dc706
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      创维盒子/双子星云手机/Vendor/BGFMDB/BG/BGDB.m

+ 4 - 1
创维盒子/双子星云手机/Vendor/BGFMDB/BG/BGDB.m

@@ -202,7 +202,10 @@ static BGDB* BGdb = nil;
                     if(block){
                         block();
                     }
-                    [self.mulThreadPool removeObjectAtIndex:0];//移除任务
+                    
+                    if(self.mulThreadPool.count>0){//hxd add 20240305 推测线程没保护好
+                        [self.mulThreadPool removeObjectAtIndex:0];//移除任务 
+                    }
                 }
             }while(self.mulThreadPool.count>0);
         _threadPoolFlag = NO;