Skip to content

Commit

Permalink
Ensure that the qt app is exited on clean up. This will trigger engin…
Browse files Browse the repository at this point in the history
…e shutdown as well. (#202)
  • Loading branch information
staceyoue authored Nov 15, 2024
1 parent 5166437 commit 79cba80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/tk_alias/shotgrid_alias_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def cleanup(self):
"""Clean up the client on disconnect."""

super(ShotGridAliasSocketIoClient, self).cleanup()
if self.__qt_app:
self.engine.execute_in_main_thread(self.__qt_app.quit)
self.__qt_app = None

def _process_events(self):
Expand Down

0 comments on commit 79cba80

Please sign in to comment.