mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 01:38:21 +08:00
Opt: Add file lock
This commit is contained in:
6
gui.py
6
gui.py
@@ -71,8 +71,10 @@ class Alas:
|
||||
toast(t("Gui.Toast.AlasIsRunning"), position='right', color='warn')
|
||||
|
||||
def stop(self):
|
||||
self.process.terminate()
|
||||
self.thd_log_queue_handler.stop()
|
||||
if self.process.is_alive():
|
||||
self.process.terminate()
|
||||
if self.thd_log_queue_handler.is_alive():
|
||||
self.thd_log_queue_handler.stop()
|
||||
|
||||
def _thread_log_queue_handler(self):
|
||||
while self.process.is_alive():
|
||||
|
||||
Reference in New Issue
Block a user