mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 15:57:52 -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:
|
if self._slicing:
|
||||||
self._slicing = False
|
self._slicing = False
|
||||||
self._restart = True
|
self._restart = True
|
||||||
|
if self._process is not None:
|
||||||
|
try:
|
||||||
self._process.terminate()
|
self._process.terminate()
|
||||||
|
except: # terminating a process that is already terminating causes an exception, silently ignore this.
|
||||||
|
pass
|
||||||
return
|
return
|
||||||
|
|
||||||
objects = []
|
objects = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue