--- 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()