log on closed/lost connection

This commit is contained in:
Job Evers-Meltzer 2016-08-10 19:39:28 -05:00
parent 35481a92f5
commit 0a07c8f131

View file

@ -263,9 +263,7 @@ class LBRYFileReflectorClientFactory(ClientFactory):
def clientConnectionLost(self, connector, reason):
"""If we get disconnected, reconnect to server."""
connector.connect()
log.debug("connection lost: %s", reason)
def clientConnectionFailed(self, connector, reason):
print("connection failed:", reason)
from twisted.internet import reactor
reactor.stop()
log.debug("connection failed: %s", reason)