Skip to content

Commit 9134644

Browse files
committed
Fixed harmonic error caused by last commit
1 parent 8d02936 commit 9134644

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

manager/manager/manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,6 @@ def on_terminate_application(self, event):
728728
except Exception:
729729
LogManager.logger.exception("No application running")
730730
print(traceback.format_exc())
731-
self.terminate_harmonic_processes()
732731

733732
def on_terminate_visualization(self, event):
734733

@@ -805,7 +804,8 @@ def on_pause(self, msg):
805804
LogManager.logger.exception("Error suspending process")
806805
else:
807806
LogManager.logger.warning("Application process was None during pause. Calling termination.")
808-
self.on_terminate_application(msg)
807+
self.pause_sim()
808+
self.reset_sim()
809809

810810
def on_resume(self, msg):
811811
if self.application_process is not None:
@@ -817,7 +817,7 @@ def on_resume(self, msg):
817817
LogManager.logger.exception("Error suspending process")
818818
else:
819819
LogManager.logger.warning("Application process was None during resume. Calling termination.")
820-
self.on_terminate_application(msg)
820+
self.reset_sim()
821821

822822
def pause_sim(self):
823823
if self.visualization_type in ["gzsim_rae", "bt_studio_gz"]:

0 commit comments

Comments
 (0)