mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
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:
parent
dce4fa9479
commit
8f9210af6b
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue