mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-10-04 06:56:47 +08:00
Tweaks to slicing engine restart behavior
CURA-2158
This commit is contained in:
parent
8df5bba6e9
commit
6c0aa0fa4f
@ -194,8 +194,7 @@ class CuraEngineBackend(Backend):
|
|||||||
self.slicingCancelled.emit()
|
self.slicingCancelled.emit()
|
||||||
self.processingProgress.emit(0)
|
self.processingProgress.emit(0)
|
||||||
Logger.log("d", "Attempting to kill the engine process")
|
Logger.log("d", "Attempting to kill the engine process")
|
||||||
if self._enabled:
|
|
||||||
self._createSocket() # Ensure that we have a fresh socket.
|
|
||||||
if Application.getInstance().getCommandLineOption("external-backend", False):
|
if Application.getInstance().getCommandLineOption("external-backend", False):
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -409,9 +408,11 @@ class CuraEngineBackend(Backend):
|
|||||||
#
|
#
|
||||||
# We should reset our state and start listening for new connections.
|
# We should reset our state and start listening for new connections.
|
||||||
def _onBackendQuit(self):
|
def _onBackendQuit(self):
|
||||||
if not self._restart and self._process:
|
if not self._restart:
|
||||||
Logger.log("d", "Backend quit with return code %s. Resetting process and socket.", self._process.wait())
|
if self._process:
|
||||||
self._process = None
|
Logger.log("d", "Backend quit with return code %s. Resetting process and socket.", self._process.wait())
|
||||||
|
self._process = None
|
||||||
|
self._createSocket()
|
||||||
|
|
||||||
## Called when the global container stack changes
|
## Called when the global container stack changes
|
||||||
def _onGlobalStackChanged(self):
|
def _onGlobalStackChanged(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user