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

relay: don't error if servers for current net were already removed

This commit is contained in:
James Lu 2016-07-01 22:20:10 -07:00
parent 28cf85bc33
commit 7c6daa839c

View File

@ -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")