3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

relay: fix RuntimeError in handle_disconnect (dict changed size during iteration)

This commit is contained in:
James Lu 2015-10-10 15:06:36 -07:00
parent 1f0426d7ff
commit ffce69060c

View File

@ -1005,7 +1005,7 @@ def handle_disconnect(irc, numeric, command, args):
del relayusers[k]
except KeyError:
pass
for name, ircobj in world.networkobjects.items():
for name, ircobj in world.networkobjects.copy().items():
if name != irc.name:
rsid = getRemoteSid(ircobj, irc)
# Let's be super extra careful here...