mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
relay: don't error if servers for current net were already removed
This commit is contained in:
parent
28cf85bc33
commit
7c6daa839c
@ -1337,7 +1337,11 @@ def handle_disconnect(irc, numeric, command, args):
|
||||
if irc.name in relayservers[name]:
|
||||
del relayservers[name][irc.name]
|
||||
|
||||
del relayservers[irc.name]
|
||||
try:
|
||||
del relayservers[irc.name]
|
||||
except KeyError: # Already removed; ignore.
|
||||
pass
|
||||
|
||||
spawnlocks_servers[irc.name].release()
|
||||
|
||||
utils.add_hook(handle_disconnect, "PYLINK_DISCONNECT")
|
||||
|
Loading…
Reference in New Issue
Block a user