mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
relay: fix RuntimeError in handle_disconnect (dict changed size during iteration)
This commit is contained in:
parent
1f0426d7ff
commit
ffce69060c
@ -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...
|
||||
|
Loading…
Reference in New Issue
Block a user