mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Slightly improve process kill handling.
This commit is contained in:
parent
a97c241a5d
commit
c53bed8450
1 changed files with 5 additions and 1 deletions
|
@ -105,7 +105,11 @@ class CuraEngineBackend(Backend):
|
|||
if self._slicing:
|
||||
self._slicing = False
|
||||
self._restart = True
|
||||
self._process.terminate()
|
||||
if self._process is not None:
|
||||
try:
|
||||
self._process.terminate()
|
||||
except: # terminating a process that is already terminating causes an exception, silently ignore this.
|
||||
pass
|
||||
return
|
||||
|
||||
objects = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue