Skip to content

Commit 92012ba

Browse files
committed
Cleaning in every 'terminate' state
1 parent 286e5bd commit 92012ba

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

manager/manager/manager.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +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-
# clean harmonic cache
248-
self.terminate_harmonic_processes()
249-
250247
cfg_dict = event.kwargs.get("data", {})
251248
world_cfg = cfg_dict['world']
252249
robot_cfg = cfg_dict['robot']
@@ -724,13 +721,15 @@ def on_terminate_application(self, event):
724721
except Exception:
725722
LogManager.logger.exception("No application running")
726723
print(traceback.format_exc())
724+
self.terminate_harmonic_processes()
727725

728726
def on_terminate_visualization(self, event):
729727

730728
self.visualization_launcher.terminate()
731729
if self.gui_server != None:
732730
self.gui_server.stop()
733731
self.gui_server = None
732+
self.terminate_harmonic_processes()
734733

735734
def on_terminate_universe(self, event):
736735

0 commit comments

Comments
 (0)