3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-29 06:02:38 +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")