Davidliu 1 月之前
父節點
當前提交
6fe3272367
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/core/voip/bot.py

+ 2 - 2
src/core/voip/bot.py

@@ -659,8 +659,8 @@ class BotAgent:
             registry.BOT_CREATE_ACCOUNT_LATENCY.observe(latency)
             self.logger.info("create pjsua latency: %.3fs", latency)
 
-        self._add_new_job()
-        self.ep.mainLoop()
+        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())