Skip to content

Commit

Permalink
fix: bridge proxy kill children as well
Browse files Browse the repository at this point in the history
  • Loading branch information
martykan committed Sep 5, 2024
1 parent b99eceb commit 24e603d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bridge_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,9 @@ def stop() -> None:
else:
BRIDGE_PROXY.kill()
log(f"Bridge proxy killed: {BRIDGE_PROXY}")
# Ensuring all child processes are cleaned up
for child in BRIDGE_PROXY.children(recursive=True):
log(f"Killing child process {child.pid}")
child.kill()
child.wait()
BRIDGE_PROXY = None

0 comments on commit 24e603d

Please sign in to comment.