mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 23:47:02 +08:00
Fix: Misjudging of subprocess state
due to async output even after "Reason: Finied" printed and a "Warning" instead of "Inactive" displayed on web ui
This commit is contained in:
@@ -26,7 +26,8 @@ class HeadlessCliApplication:
|
||||
finally:
|
||||
self.callback("exited")
|
||||
|
||||
Thread(target=f, daemon=True).start()
|
||||
self.logger = Thread(target=f, daemon=True)
|
||||
self.logger.start()
|
||||
|
||||
def callback(self, line):
|
||||
print(line)
|
||||
|
||||
Reference in New Issue
Block a user