Skip to content

Commit

Permalink
Adjust connection.
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-ynput committed Nov 11, 2024
1 parent 86f3c66 commit 667420e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/ayon_flame/plugins/create/create_workfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ def _get_project_metadata(self):
metadata = WireTapStr()
handle.getMetaData("XML", "", 1, metadata)

# Wiretap objects needs to be deleted right after usage.
# https://help.autodesk.com/view/FLAME/2025/ENU/
# ?guid=Flame_API_Wiretap_SDK_FAQs_and_Troubleshooting_General_API_html
# For weird reasons a context manager does not work here.
server.disconnect()
del client
del handle
Expand All @@ -80,6 +84,8 @@ def _dump_instance_data(self, data):
new_metadata = WireTapStr(updated)
ok = handle.setMetaData("XML", new_metadata.c_str())

# Wiretap objects needs to be deleted right after usage.
# (see above)
server.disconnect()
del client
del handle
Expand Down

0 comments on commit 667420e

Please sign in to comment.