From f17e2a4f2878aa51eb8496dccb46e35cd895df20 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Wed, 25 Aug 2021 10:14:52 +0200 Subject: [PATCH] added ensurence that it is not possible to run publishing twice --- openpype/tools/new_publisher/control.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openpype/tools/new_publisher/control.py b/openpype/tools/new_publisher/control.py index d366f3d198..f8ef70225f 100644 --- a/openpype/tools/new_publisher/control.py +++ b/openpype/tools/new_publisher/control.py @@ -571,6 +571,8 @@ class PublisherController: def _start_publish(self): """Start or continue in publishing.""" + if self._publish_is_running: + return self._publish_is_running = True self._trigger_callbacks(self._publish_started_callback_refs) self._main_thread_processor.start()