added one more check on start action server

This commit is contained in:
iLLiCiTiT 2019-11-15 18:15:41 +01:00
parent db77c06555
commit 0e5cb8652c

View file

@ -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