Skip to content

Commit

Permalink
Merge pull request #63 from JdeRobot/issue-62
Browse files Browse the repository at this point in the history
Communications stop on terminate
  • Loading branch information
ReyDoran authored Jul 20, 2023
2 parents 6cd552c + dc5644b commit b4f5917
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manager/manager/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def on_terminate(self, event):
"""Terminates the application and the launcher \
and sets the variable __code_loaded to False"""
try:
self.consumer.stop()
self.application.terminate()
self.__code_loaded = False
self.launcher.terminate()
Expand All @@ -183,6 +184,7 @@ def on_terminate(self, event):

def on_disconnect(self, event):
try:
self.consumer.stop()
self.__code_loaded = False
self.application.terminate()
self.launcher.terminate()
Expand Down

0 comments on commit b4f5917

Please sign in to comment.