|
@@ -555,7 +555,7 @@ class BotAgent:
|
|
self.dataHandleServer = DataHandleServer(app)
|
|
self.dataHandleServer = DataHandleServer(app)
|
|
self.pjsua_thread = None
|
|
self.pjsua_thread = None
|
|
self.start()
|
|
self.start()
|
|
- threading.Thread(target=self.thread_health_check).start()
|
|
|
|
|
|
+ threading.Thread(target=self.thread_health_daemon).start()
|
|
|
|
|
|
def create_pjsua2(self, timeout_sec=86400):
|
|
def create_pjsua2(self, timeout_sec=86400):
|
|
start_time = time.time()
|
|
start_time = time.time()
|
|
@@ -627,7 +627,7 @@ class BotAgent:
|
|
# Destroy the library
|
|
# Destroy the library
|
|
self.ep.libDestroy()
|
|
self.ep.libDestroy()
|
|
|
|
|
|
- def thread_health_check(self):
|
|
|
|
|
|
+ def thread_health_daemon(self):
|
|
while not self.daemon_stopping:
|
|
while not self.daemon_stopping:
|
|
_lock = self.play_complete_degree_check()
|
|
_lock = self.play_complete_degree_check()
|
|
if _lock:
|
|
if _lock:
|