mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +08:00
Fix: Update cancel
This commit is contained in:
@@ -904,6 +904,7 @@ def clearup():
|
||||
Notice: Ensure run it before uvicorn reload app,
|
||||
all process will NOT EXIT after close electron app.
|
||||
"""
|
||||
logger.info('Start clearup')
|
||||
close_discord_rpc()
|
||||
for alas in AlasManager.all_alas.values():
|
||||
alas.stop()
|
||||
|
||||
@@ -169,6 +169,7 @@ class Updater(Config, Installer):
|
||||
f"Remains: {[alas.config_name for alas in _instances]}")
|
||||
if self.state == 'cancel':
|
||||
self.state = 1
|
||||
self.event.clear()
|
||||
AlasManager.start_alas(instances, self.event)
|
||||
return
|
||||
time.sleep(0.25)
|
||||
@@ -199,7 +200,6 @@ class Updater(Config, Installer):
|
||||
# app ended here and uvicorn will restart whole app
|
||||
pass
|
||||
timer = threading.Timer(delay, trigger)
|
||||
timer.daemon = True
|
||||
timer.start()
|
||||
|
||||
def schedule_restart(self) -> Generator:
|
||||
|
||||
Reference in New Issue
Block a user