mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-19 18:19:10 +08:00
Do not try to recreate the socket when we are shutting down anyway
This prevents issues where closing the socket triggers socket creation and then a deadlock occurs. Contributes to CURA-1391
This commit is contained in:
parent
919e2f55e9
commit
c329c2e12d
@ -200,8 +200,10 @@ class CuraEngineBackend(Backend):
|
||||
self._onChanged()
|
||||
|
||||
def _onSocketError(self, error):
|
||||
super()._onSocketError(error)
|
||||
if Application.getInstance().isShuttingDown():
|
||||
return
|
||||
|
||||
super()._onSocketError(error)
|
||||
self._terminate()
|
||||
|
||||
if error.getErrorCode() not in [Arcus.ErrorCode.BindFailedError, Arcus.ErrorCode.ConnectionResetError, Arcus.ErrorCode.Debug]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user