downloader: reset hashTtl on receive

This commit is contained in:
obscuren 2015-04-19 00:15:05 +02:00
parent 71aa5fe8a3
commit 86ecdcd5ff

View File

@ -211,6 +211,8 @@ out:
for {
select {
case hashes := <-d.hashCh:
failureResponse.Reset(hashTtl)
var done bool // determines whether we're done fetching hashes (i.e. common hash found)
hashSet := set.New()
for _, hash := range hashes {