Skip to content

Commit

Permalink
Update Baas_thread.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pur1fying committed Aug 22, 2024
1 parent c1cc7a2 commit 365bc07
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions core/Baas_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
'explore_activity_challenge': module.explore_activity_challenge.implement,
'explore_activity_mission': module.explore_activity_mission.implement,
'dailyGameActivity': module.dailyGameActivity.implement,
'JP_server_mumu_login_fix': module.JP_server_mumu_login_fix.implement,
}


Expand Down Expand Up @@ -198,7 +197,7 @@ def check_process_running(self, process_name):
if proc.info['name'] == process_name:
return True
return False

def terminate_process(self, process_name):
"""
终止指定名称的进程
Expand Down Expand Up @@ -721,8 +720,8 @@ def refresh_hard_tasks(self):

def handle_then(self):
action = self.config_set["then"]
if action == '无动作' or not self.scheduler.is_wait_long(): # Do Nothing
return
if action == '无动作' or not self.scheduler.is_wait_long(): # Do Nothing
return
elif action == '退出 Baas': # Exit Baas
self.exit_baas()
elif action == '退出 模拟器': # Exit Emulator
Expand All @@ -733,7 +732,7 @@ def handle_then(self):
elif action == '关机': # Shutdown
self.shutdown()
self.signal_stop() # avoid rerunning then action in case of error

def exit_emulator(self):
self.logger.info(f"-- BAAS Exit Emulator --")
if self.config['emulatorIsMultiInstance']:
Expand All @@ -752,7 +751,7 @@ def exit_emulator(self):

def exit_baas(self):
if self.exit_signal is not None:
self.exit_signal.emit(0)
self.exit_signal.emit(0)

def shutdown(self):
try:
Expand Down

0 comments on commit 365bc07

Please sign in to comment.