From 3ad65e315fdc43cbf4f90ea63a899b636e94ae9f Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Tue, 12 Apr 2016 18:05:33 +0200 Subject: [PATCH] Terminate CuraEngine if it is still running when Cura is closed CURA-1388 --- plugins/CuraEngineBackend/CuraEngineBackend.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/CuraEngineBackend/CuraEngineBackend.py b/plugins/CuraEngineBackend/CuraEngineBackend.py index 4236b97fba..59a802045a 100644 --- a/plugins/CuraEngineBackend/CuraEngineBackend.py +++ b/plugins/CuraEngineBackend/CuraEngineBackend.py @@ -86,6 +86,11 @@ class CuraEngineBackend(Backend): Application.getInstance().getMachineManager().activeMachineInstanceChanged.connect(self._onInstanceChanged) + def close(self): + # Terminate CuraEngine if it is still running at this point + self._terminate() + super().close() + ## Get the command that is used to call the engine. # This is usefull for debugging and used to actually start the engine # \return list of commands and args / parameters.