Skip to content

Commit cd8da33

Browse files
authored
Merge pull request #205 from JdeRobot/issue-204
Fixing docker crash changing world in harmonic
2 parents 5305db0 + 92012ba commit cd8da33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

manager/manager/manager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ def on_launch_world(self, event):
244244
Note:
245245
The method logs the start of the launch transition and the configuration details for debugging and traceability.
246246
"""
247-
248247
cfg_dict = event.kwargs.get("data", {})
249248
world_cfg = cfg_dict['world']
250249
robot_cfg = cfg_dict['robot']
@@ -722,15 +721,18 @@ def on_terminate_application(self, event):
722721
except Exception:
723722
LogManager.logger.exception("No application running")
724723
print(traceback.format_exc())
724+
self.terminate_harmonic_processes()
725725

726726
def on_terminate_visualization(self, event):
727727

728728
self.visualization_launcher.terminate()
729729
if self.gui_server != None:
730730
self.gui_server.stop()
731731
self.gui_server = None
732+
self.terminate_harmonic_processes()
732733

733734
def on_terminate_universe(self, event):
735+
734736
if self.world_launcher != None:
735737
self.world_launcher.terminate()
736738
if self.robot_launcher != None:

0 commit comments

Comments
 (0)