|
@@ -648,7 +648,7 @@ class BotAgent:
|
|
|
|
|
|
def main_thread_daemon(self):
|
|
def main_thread_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:
|
|
self.logger.error("daviddebugger::play time greater than 60s, will restart")
|
|
self.logger.error("daviddebugger::play time greater than 60s, will restart")
|
|
self.restart()
|
|
self.restart()
|
|
@@ -668,7 +668,7 @@ class BotAgent:
|
|
continue
|
|
continue
|
|
time.sleep(0.1)
|
|
time.sleep(0.1)
|
|
|
|
|
|
- def play_complete_degree_check(self):
|
|
|
|
|
|
+ def _play_complete_degree_check(self):
|
|
for k, v in list(self.call_players.items()):
|
|
for k, v in list(self.call_players.items()):
|
|
if len(v) == 2:
|
|
if len(v) == 2:
|
|
self.call_players.pop(k)
|
|
self.call_players.pop(k)
|