Skip to content

Commit

Permalink
Release v1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
staceyoue authored Mar 13, 2024
2 parents ad3e310 + 9f45cb3 commit f864840
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/tk_framework_alias_utils/plugin_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def toolkit_plugin_bootstrap(

# This will block and not return until ShotGrid app exits.
ret = app.exec_()
logger.info("ShotGrid QApplication exited with return code: %s" % ret)

# Clean up ShotGrid components
root_logger = sgtk.LogManager().root_logger
Expand All @@ -120,9 +121,13 @@ def toolkit_plugin_bootstrap(
if isinstance(handler, ToolkitEngineHandler):
root_logger.removeHandler(handler)

# Get the engine again before clean up, our reference may be stale.
engine = sgtk.platform.current_engine()
if engine:
logger.info("Destroying Toolkit...")
engine.destroy()

logger.info("Plugin bootstrap exiting")
return ret


Expand Down

0 comments on commit f864840

Please sign in to comment.