commit 72706f8219fa10e48fc0029113735f6600df519a
parent 0eb05f7cc475e29634f71ab6ba8fc0d3bc732ce7
Author: ThomasV <thomasv@electrum.org>
Date: Fri, 4 Aug 2017 15:34:23 +0200
network: connection_down if interface fails to connect chunk
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/network.py b/lib/network.py
@@ -774,6 +774,7 @@ class Network(util.DaemonThread):
connect = interface.blockchain.connect_chunk(index, result)
# If not finished, get the next chunk
if not connect:
+ self.connection_down(interface.server)
return
if interface.blockchain.height() < interface.tip:
self.request_chunk(interface, index+1)