src/eric7/Utilities/BackgroundService.py

branch
eric7
changeset 10080
f834e57a5b13
parent 10072
891e71c29be0
child 10433
328f3ec4b77a
--- a/src/eric7/Utilities/BackgroundService.py	Sat May 27 18:57:32 2023 +0200
+++ b/src/eric7/Utilities/BackgroundService.py	Sat May 27 20:03:31 2023 +0200
@@ -526,10 +526,11 @@
         self.close()
 
         for connection in self.connections.values():
-            connection.readyRead.disconnect()
-            connection.disconnected.disconnect()
-            connection.close()
-            connection.deleteLater()
+            with contextlib.suppress(RuntimeError):
+                connection.readyRead.disconnect()
+                connection.disconnected.disconnect()
+                connection.close()
+                connection.deleteLater()
 
         for process, _interpreter in self.processes.values():
             process.close()

eric ide

mercurial