Skip to content

Commit

Permalink
Improved visualization termination logic
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarMrZ committed Jul 30, 2024
1 parent 8c0dfa1 commit f844976
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions manager/manager/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def on_launch_world(self, event):

self.world_launcher = LauncherWorld(**cfg.model_dump())
LogManager.logger.info(str(self.world_launcher))
self.world_launcher.run()
self.world_launcher.run()
LogManager.logger.info("Launch transition finished")

def prepare_custom_universe(self, cfg_dict):
Expand Down Expand Up @@ -386,8 +386,9 @@ def on_terminate_application(self, event):
def on_terminate_visualization(self, event):

self.visualization_launcher.terminate()
self.gui_server.stop()
self.gui_server = None
if self.gui_server != None:
self.gui_server.stop()
self.gui_server = None

def on_terminate_universe(self, event):

Expand Down

0 comments on commit f844976

Please sign in to comment.