mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-28 05:29:25 +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]
|
del relayusers[k]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
for name, ircobj in world.networkobjects.items():
|
for name, ircobj in world.networkobjects.copy().items():
|
||||||
if name != irc.name:
|
if name != irc.name:
|
||||||
rsid = getRemoteSid(ircobj, irc)
|
rsid = getRemoteSid(ircobj, irc)
|
||||||
# Let's be super extra careful here...
|
# Let's be super extra careful here...
|
||||||
|
Loading…
Reference in New Issue
Block a user