mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 19:07:01 +08:00
Opt: kill OrphanSlayer when sub-subprocess exited
which there is no need of it any more
This commit is contained in:
@@ -30,11 +30,12 @@ class FGOpy(HeadlessCliApplication):
|
||||
super().__init__(launch)
|
||||
while self.first_log:
|
||||
time.sleep(.5)
|
||||
self.reg_halt(self.info["PID"], halt)
|
||||
self.start_orphan_slayer(self.info["PID"], halt)
|
||||
|
||||
def callback(self, line):
|
||||
if line == "exited":
|
||||
self.last_error = "exited"
|
||||
self.orphan_slayer.kill()
|
||||
if self.mutex.locked():
|
||||
self.mutex.release()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user