|
@@ -666,10 +666,12 @@ class BotAgent:
|
|
registry.BOT_AGENT_LIVES.set(self.user_part_pool.qsize())
|
|
registry.BOT_AGENT_LIVES.set(self.user_part_pool.qsize())
|
|
self.ep.libHandleEvents(200)
|
|
self.ep.libHandleEvents(200)
|
|
|
|
|
|
|
|
+ self.logger.info('2222222222222222222222')
|
|
self.call_players.clear()
|
|
self.call_players.clear()
|
|
self.accounts.clear()
|
|
self.accounts.clear()
|
|
self.calls.clear()
|
|
self.calls.clear()
|
|
# Destroy the library
|
|
# Destroy the library
|
|
|
|
+ self.logger.info('3333333333333333333')
|
|
self.ep.libDestroy()
|
|
self.ep.libDestroy()
|
|
self.logger.info("create pjsua already shutdown")
|
|
self.logger.info("create pjsua already shutdown")
|
|
|
|
|
|
@@ -806,17 +808,17 @@ class BotAgent:
|
|
self.is_stopping = True
|
|
self.is_stopping = True
|
|
time.sleep(1)
|
|
time.sleep(1)
|
|
self.logger.info("destroy, come in 11111")
|
|
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.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)
|
|
time.sleep(1)
|
|
self.logger.info("destroy, come in 33333")
|
|
self.logger.info("destroy, come in 33333")
|
|
|
|
|