mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-07 20:29:01 +08:00
Slightly improve process kill handling.
This commit is contained in:
parent
a97c241a5d
commit
c53bed8450
@ -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
|
||||||
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
|
return
|
||||||
|
|
||||||
objects = []
|
objects = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user