Revert "Changed wait for subprocess to poll"

This reverts commit e463c93f77.
This commit is contained in:
Jaime van Kessel 2016-04-01 13:58:11 +02:00
parent f1a5de50e8
commit ca70b275d8

View file

@ -162,7 +162,7 @@ class CuraEngineBackend(Backend):
Logger.log("d", "Killing engine process") Logger.log("d", "Killing engine process")
try: try:
self._process.terminate() 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._process = None
#self._createSocket() # Re create the socket #self._createSocket() # Re create the socket
except Exception as e: # terminating a process that is already terminating causes an exception, silently ignore this. 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): def _onBackendQuit(self):
if not self._restart and self._process: 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._process = None
self._createSocket() self._createSocket()