From 0e5cb8652c8cfce6f7fd3bad38e1faaad3b4e425 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 15 Nov 2019 18:15:41 +0100 Subject: [PATCH] added one more check on start action server --- pype/ftrack/tray/ftrack_module.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pype/ftrack/tray/ftrack_module.py b/pype/ftrack/tray/ftrack_module.py index 1239e3c76c..563b11c388 100644 --- a/pype/ftrack/tray/ftrack_module.py +++ b/pype/ftrack/tray/ftrack_module.py @@ -77,6 +77,12 @@ class FtrackModule: def start_action_server(self): self.bool_action_thread_running = True self.set_menu_visibility() + if ( + self.thread_action_server is not None and + self.bool_action_thread_running is False + ): + self.stop_action_server() + if self.thread_action_server is None: self.thread_action_server = threading.Thread( target=self.set_action_server