Skip to content

Commit 195aceb

Browse files
committed
Try without disconnect
1 parent 2687c5a commit 195aceb

1 file changed

Lines changed: 33 additions & 1 deletion

File tree

manager/manager/manager.py

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,39 @@ def signal_handler(sign, frame):
877877
except Exception as e:
878878
LogManager.logger.exception("Exception stopping GUI server")
879879

880-
self.on_disconnect(None)
880+
try:
881+
self.consumer.stop()
882+
except Exception as e:
883+
LogManager.logger.exception("Exception stopping consumer")
884+
885+
if self.application_process:
886+
try:
887+
stop_process_and_children(self.application_process)
888+
self.application_process = None
889+
except Exception as e:
890+
LogManager.logger.exception("Exception stopping application process")
891+
892+
if self.visualization_launcher:
893+
try:
894+
self.visualization_launcher.terminate()
895+
except Exception as e:
896+
LogManager.logger.exception(
897+
"Exception terminating visualization launcher"
898+
)
899+
900+
if self.robot_launcher:
901+
try:
902+
self.robot_launcher.terminate()
903+
except Exception as e:
904+
LogManager.logger.exception("Exception terminating robot launcher")
905+
906+
if self.world_launcher:
907+
try:
908+
self.world_launcher.terminate()
909+
except Exception as e:
910+
LogManager.logger.exception("Exception terminating world launcher")
911+
912+
self.terminate_harmonic_processes()
881913
exit()
882914

883915
signal.signal(signal.SIGINT, signal_handler)

0 commit comments

Comments
 (0)