Davidliu 1 bulan lalu
induk
melakukan
f06e96caf9
1 mengubah file dengan 5 tambahan dan 7 penghapusan
  1. 5 7
      src/core/voip/bot.py

+ 5 - 7
src/core/voip/bot.py

@@ -659,12 +659,10 @@ class BotAgent:
             registry.BOT_CREATE_ACCOUNT_LATENCY.observe(latency)
             self.logger.info("create pjsua latency: %.3fs", latency)
 
-        my_thread = threading.Thread(target=self._add_new_job)
-        my_thread.start()
-        while not self.is_stopping:
-            self.logger.info('1111111111111111111')
-            registry.BOT_AGENT_LIVES.set(self.user_part_pool.qsize())
-            self.ep.libHandleEvents(200)
+        self._add_new_job()
+        # while not self.is_stopping:
+        #     registry.BOT_AGENT_LIVES.set(self.user_part_pool.qsize())
+        #     self.ep.libHandleEvents(200)
 
         self.logger.info('2222222222222222222222')
         self.call_players.clear()
@@ -682,7 +680,7 @@ class BotAgent:
         _lock = True
         if _lock:
             self.logger.error("daviddebugger::play time greater than 60s, will restart")
-            self.restart()
+            # self.restart()
             return True
 
         _lock = self.cache.get_pjsua_thread_lock()