remove pid after program exit
This commit is contained in:
parent
6377fba936
commit
848174bc78
@ -288,6 +288,8 @@ class Openvpn:
|
||||
print(f'[stdout]\n{stdout.decode()}')
|
||||
if stderr:
|
||||
print(f'[stderr]\n{stderr.decode()}')
|
||||
if PID in self.pids:
|
||||
self.pids.remove(PID)
|
||||
await asyncio.sleep(5)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user