Added forced re-creation of socket

CURA-1133
This commit is contained in:
Jaime van Kessel 2016-03-21 16:32:10 +01:00
parent 174f150ead
commit dce4fa9479

View file

@ -163,6 +163,7 @@ class CuraEngineBackend(Backend):
try:
self._process.terminate()
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.
Logger.log("d", "Exception occured while trying to kill the engine %s", str(e))
Logger.log("d", "Engine process is killed")