mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 15:45:52 +08: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
@ -163,7 +163,7 @@ class CuraEngineBackend(Backend):
|
|||||||
try:
|
try:
|
||||||
self._process.terminate()
|
self._process.terminate()
|
||||||
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.
|
||||||
Logger.log("d", "Exception occured while trying to kill the engine %s", str(e))
|
Logger.log("d", "Exception occured while trying to kill the engine %s", str(e))
|
||||||
Logger.log("d", "Engine process is killed")
|
Logger.log("d", "Engine process is killed")
|
||||||
@ -287,7 +287,7 @@ class CuraEngineBackend(Backend):
|
|||||||
self._terminate()
|
self._terminate()
|
||||||
|
|
||||||
def _onBackendQuit(self):
|
def _onBackendQuit(self):
|
||||||
if not self._restart and self._process:
|
if not self._restart:
|
||||||
Logger.log("d", "Backend quitted. Resetting process and socket.")
|
Logger.log("d", "Backend quitted. Resetting process and socket.")
|
||||||
self._process = None
|
self._process = None
|
||||||
self._createSocket()
|
self._createSocket()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user