From 174f150eadb657cf5c21a2d4e5e3dd0f64ecc7e2 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 21 Mar 2016 15:44:27 +0100 Subject: [PATCH] Error now also causes terminate to be called CURA-1133 --- plugins/CuraEngineBackend/CuraEngineBackend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/CuraEngineBackend/CuraEngineBackend.py b/plugins/CuraEngineBackend/CuraEngineBackend.py index b3ea28e62f..60c8cdacc8 100644 --- a/plugins/CuraEngineBackend/CuraEngineBackend.py +++ b/plugins/CuraEngineBackend/CuraEngineBackend.py @@ -156,6 +156,7 @@ class CuraEngineBackend(Backend): self._slicing = False self._restart = True self.slicingCancelled.emit() + self.processingProgress.emit(0) Logger.log("d", "Attempting to kill the engine process") if self._process is not None: Logger.log("d", "Killing engine process") @@ -191,8 +192,7 @@ class CuraEngineBackend(Backend): def _onSocketError(self, error): super()._onSocketError(error) - self._slicing = False - self.processingProgress.emit(0) + self._terminate() if error.getErrorCode() not in [Arcus.ErrorCode.BindFailedError, Arcus.ErrorCode.ConnectionResetError, Arcus.ErrorCode.Debug]: Logger.log("e", "A socket error caused the connection to be reset")