+ self._thread = threading.Thread(target=self._runEngine, args=(scene, self._thread, pluginInfo.getPostProcessPluginConfig()))
+ self._thread.daemon = True
+ self._thread.start()
+
+ def _runEngine(self, scene, old_thread, pluginConfig):
+ if old_thread is not None:
+ if self._process is not None:
+ self._process.terminate()
+ old_thread.join()
+ self._callback(-1.0)
+