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

Revert "relay: don't try to force network disconnects"

This reverts commit 77edd9870c.
This commit is contained in:
James Lu 2016-07-13 18:43:22 -07:00
parent 51457f3550
commit 31bf984996

View File

@ -247,6 +247,9 @@ def spawnRelayServer(irc, remoteirc):
except ValueError: # Network not initialized yet, or a server name conflict.
log.exception('(%s) Failed to spawn server for %r:',
irc.name, remoteirc.name)
# We will just bail here. Disconnect the bad network.
handle_disconnect(irc, None, 'PYLINK_DISCONNECT_RELAY_FORCED', {})
irc.disconnect()
raise
# Mark the server as a relay server