mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
relay: abort connection when spawning a server fails
This commit is contained in:
parent
cf2ba4b492
commit
cc171eb79a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user