mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-21 13:47:51 -06:00
Tweaks to slicing engine restart behavior
CURA-2158
This commit is contained in:
parent
8df5bba6e9
commit
6c0aa0fa4f
1 changed files with 6 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue