From 8d7dac3553273732c59f7b02a20f3ef074de43a1 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 20 Jul 2005 14:58:05 +0000 Subject: [PATCH] We copy the list of connections because one can disappear while we process() --- src/gajim.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gajim.py b/src/gajim.py index 9f0f604c3..7983c17e6 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -841,7 +841,12 @@ class Interface: def process_connections(self): try: + # We copy the list of connections because one can disappear while we + # process() + accounts = [] for account in gajim.connections: + accounts.append(account) + for account in accounts: if gajim.connections[account].connected: gajim.connections[account].process(0.01) time.sleep(0.01) # threads in connection.py have time to run