mirror of
https://github.com/sui-feng-cb/AzurLaneAutoScript1.git
synced 2026-06-21 03:54:11 +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