forked from LBRYCommunity/lbry-sdk
log on closed/lost connection
This commit is contained in:
parent
35481a92f5
commit
0a07c8f131
1 changed files with 2 additions and 4 deletions
|
@ -263,9 +263,7 @@ class LBRYFileReflectorClientFactory(ClientFactory):
|
||||||
|
|
||||||
def clientConnectionLost(self, connector, reason):
|
def clientConnectionLost(self, connector, reason):
|
||||||
"""If we get disconnected, reconnect to server."""
|
"""If we get disconnected, reconnect to server."""
|
||||||
connector.connect()
|
log.debug("connection lost: %s", reason)
|
||||||
|
|
||||||
def clientConnectionFailed(self, connector, reason):
|
def clientConnectionFailed(self, connector, reason):
|
||||||
print("connection failed:", reason)
|
log.debug("connection failed: %s", reason)
|
||||||
from twisted.internet import reactor
|
|
||||||
reactor.stop()
|
|
||||||
|
|
Loading…
Reference in a new issue