From ca70b275d869046c4909ab87191bde03280ef5a7 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 1 Apr 2016 13:58:11 +0200 Subject: [PATCH] Revert "Changed wait for subprocess to poll" This reverts commit e463c93f77a8015b00ab49aa7b8f9f6433cba26b. --- 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 cf32bfd93a..81fc0ab7c2 100644 --- a/plugins/CuraEngineBackend/CuraEngineBackend.py +++ b/plugins/CuraEngineBackend/CuraEngineBackend.py @@ -162,7 +162,7 @@ class CuraEngineBackend(Backend): Logger.log("d", "Killing engine process") try: self._process.terminate() - Logger.log("d", "Engine process is killed. Recieved return code %s", self._process.poll()) + Logger.log("d", "Engine process is killed. Recieved return code %s", self._process.wait()) self._process = None #self._createSocket() # Re create the socket except Exception as e: # terminating a process that is already terminating causes an exception, silently ignore this. @@ -289,6 +289,6 @@ class CuraEngineBackend(Backend): def _onBackendQuit(self): if not self._restart and self._process: - Logger.log("d", "Backend quit with return code %s. Resetting process and socket.", self._process.poll()) + Logger.log("d", "Backend quit with return code %s. Resetting process and socket.", self._process.wait()) self._process = None self._createSocket()