Davidliu před 1 měsícem
rodič
revize
03dc2d8c8f
1 změnil soubory, kde provedl 12 přidání a 10 odebrání
  1. 12 10
      src/core/voip/bot.py

+ 12 - 10
src/core/voip/bot.py

@@ -666,10 +666,12 @@ class BotAgent:
             registry.BOT_AGENT_LIVES.set(self.user_part_pool.qsize())
             self.ep.libHandleEvents(200)
 
+        self.logger.info('2222222222222222222222')
         self.call_players.clear()
         self.accounts.clear()
         self.calls.clear()
         # Destroy the library
+        self.logger.info('3333333333333333333')
         self.ep.libDestroy()
         self.logger.info("create pjsua already shutdown")
 
@@ -806,17 +808,17 @@ class BotAgent:
         self.is_stopping = True
         time.sleep(1)
         self.logger.info("destroy, come in 11111")
-        try:
-            while not self.user_part_pool.empty():
-                self.user_part_pool.get_nowait()
-        except:
-            pass
+        # try:
+        #     while not self.user_part_pool.empty():
+        #         self.user_part_pool.get_nowait()
+        # except:
+        #     pass
         self.logger.info("destroy, come in 22222")
-        self.call_players.clear()
-        self.accounts.clear()
-        self.calls.clear()
-        # Destroy the library
-        self.ep.libDestroy()
+        # self.call_players.clear()
+        # self.accounts.clear()
+        # self.calls.clear()
+        # # Destroy the library
+        # self.ep.libDestroy()
         time.sleep(1)
         self.logger.info("destroy, come in 33333")