network: connection_down if interface fails to connect chunk

This commit is contained in:
ThomasV 2017-08-04 15:34:23 +02:00
parent 0eb05f7cc4
commit 72706f8219
1 changed files with 1 additions and 0 deletions

View File

@ -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)