mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Reactivate _always_restart
This was deactivated during debugging as a test. Shouldn't have been committed. Contributes to issue CURA-427.
This commit is contained in:
parent
6271b4039b
commit
a45e55ab4c
1 changed files with 6 additions and 6 deletions
|
@ -213,12 +213,12 @@ class CuraEngineBackend(Backend):
|
|||
self._message.hide()
|
||||
self._message = None
|
||||
|
||||
#if self._always_restart:
|
||||
#try:
|
||||
#self._process.terminate()
|
||||
#self._createSocket()
|
||||
#except: # terminating a process that is already terminating causes an exception, silently ignore this.
|
||||
#pass
|
||||
if self._always_restart:
|
||||
try:
|
||||
self._process.terminate()
|
||||
self._createSocket()
|
||||
except: # terminating a process that is already terminating causes an exception, silently ignore this.
|
||||
pass
|
||||
|
||||
def _onGCodeLayerMessage(self, message):
|
||||
self._scene.gcode_list.append(message.data.decode("utf-8", "replace"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue