From 667420ec353c2b84558a5fa91fe3bf417a04714b Mon Sep 17 00:00:00 2001 From: "robin@ynput.io" Date: Mon, 11 Nov 2024 14:09:31 -0500 Subject: [PATCH] Adjust connection. --- client/ayon_flame/plugins/create/create_workfile.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/ayon_flame/plugins/create/create_workfile.py b/client/ayon_flame/plugins/create/create_workfile.py index d81f2b3..5228233 100644 --- a/client/ayon_flame/plugins/create/create_workfile.py +++ b/client/ayon_flame/plugins/create/create_workfile.py @@ -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 @@ -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