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

relay: abort connection when spawning a server fails

This commit is contained in:
James Lu 2015-09-27 10:45:08 -07:00
parent cf2ba4b492
commit cc171eb79a

View File

@ -156,7 +156,7 @@ def getRemoteSid(irc, remoteirc):
except ValueError: # Network not initialized yet.
log.exception('(%s) Failed to spawn server for %r:',
irc.name, remoteirc.name)
return
irc.aborted.set()
relayservers[irc.name][remoteirc.name] = sid
return sid