From b97b694f414029c5d1ae2cc629480624b090e20f Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Tue, 2 Aug 2016 13:57:55 +0200 Subject: [PATCH] Force recreating the socket when using external-backend This may recreate the socket with a new port number but at least it recreates the socket now. Partially fixes CURA-1877 --- plugins/CuraEngineBackend/CuraEngineBackend.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/CuraEngineBackend/CuraEngineBackend.py b/plugins/CuraEngineBackend/CuraEngineBackend.py index a822512218..910705df42 100644 --- a/plugins/CuraEngineBackend/CuraEngineBackend.py +++ b/plugins/CuraEngineBackend/CuraEngineBackend.py @@ -181,6 +181,11 @@ class CuraEngineBackend(Backend): self.slicingCancelled.emit() self.processingProgress.emit(0) Logger.log("d", "Attempting to kill the engine process") + + if Application.getInstance().getCommandLineOption("external-backend", False): + self._createSocket() + return + if self._process is not None: Logger.log("d", "Killing engine process") try: