Skip to content

Commit 22b50d9

Browse files
committed
Kill harmonic processes when switching universes
1 parent 4905113 commit 22b50d9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

manager/manager/manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,7 @@ def terminate_harmonic_processes(self):
675675
"""
676676
Terminate all processes within the Docker container whose command line contains 'gz' or 'launch'.
677677
"""
678+
LogManager.logger.info("Terminate Harmonic process")
678679
keywords = ['gz', 'launch']
679680
for keyword in keywords:
680681
try:
@@ -734,6 +735,7 @@ def on_terminate_universe(self, event):
734735
self.world_launcher.terminate()
735736
if self.robot_launcher != None:
736737
self.robot_launcher.terminate()
738+
self.terminate_harmonic_processes()
737739

738740
def on_disconnect(self, event):
739741
self.terminate_harmonic_processes()

0 commit comments

Comments
 (0)