Bugfix to avoid an error on shutdown. BgService

Sat, 22 Mar 2014 18:51:14 +0100

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Sat, 22 Mar 2014 18:51:14 +0100
branch
BgService
changeset 3422
ecfe8271cc73
parent 3418
27ab90e0f25e
child 3442
927186c0d409

Bugfix to avoid an error on shutdown.

Utilities/BackgroundService.py file | annotate | diff | comparison | revisions
--- a/Utilities/BackgroundService.py	Sat Mar 22 16:03:40 2014 +0100
+++ b/Utilities/BackgroundService.py	Sat Mar 22 18:51:14 2014 +0100
@@ -291,7 +291,9 @@
         """
         Cleanup the connections and processes when Eric is shuting down.
         """
-        for connection in self.connections.values():
+        # Make copy of dictionary values because the list is changed by
+        # on_disconnectSocket
+        for connection in list(self.connections.values()):
             if connection:
                 connection.close()
         

eric ide

mercurial