mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Changed wait for subprocess to poll
The wait is a suspect in a MAC issue. CURA-1300
This commit is contained in:
parent
926dc1a010
commit
e463c93f77
1 changed files with 2 additions and 2 deletions
|
@ -162,7 +162,7 @@ class CuraEngineBackend(Backend):
|
|||
Logger.log("d", "Killing engine process")
|
||||
try:
|
||||
self._process.terminate()
|
||||
Logger.log("d", "Engine process is killed. Recieved return code %s", self._process.wait())
|
||||
Logger.log("d", "Engine process is killed. Recieved return code %s", self._process.poll())
|
||||
self._process = None
|
||||
#self._createSocket() # Re create the socket
|
||||
except Exception as e: # terminating a process that is already terminating causes an exception, silently ignore this.
|
||||
|
@ -289,6 +289,6 @@ class CuraEngineBackend(Backend):
|
|||
|
||||
def _onBackendQuit(self):
|
||||
if not self._restart and self._process:
|
||||
Logger.log("d", "Backend quit with return code %s. Resetting process and socket.", self._process.wait())
|
||||
Logger.log("d", "Backend quit with return code %s. Resetting process and socket.", self._process.poll())
|
||||
self._process = None
|
||||
self._createSocket()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue