mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06: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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue