Socket is now re-created regardless of process state

The previous fix for this could cause an infinate slice loop on windows. CURA-1133
This commit is contained in:
Jaime van Kessel 2016-03-22 11:29:16 +01:00
parent dce4fa9479
commit 8f9210af6b

View file

@ -163,7 +163,7 @@ class CuraEngineBackend(Backend):
try:
self._process.terminate()
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.
Logger.log("d", "Exception occured while trying to kill the engine %s", str(e))
Logger.log("d", "Engine process is killed")
@ -287,7 +287,7 @@ class CuraEngineBackend(Backend):
self._terminate()
def _onBackendQuit(self):
if not self._restart and self._process:
if not self._restart:
Logger.log("d", "Backend quitted. Resetting process and socket.")
self._process = None
self._createSocket()