More objects to be downloaded fixes

This commit is contained in:
Peter Šurda 2017-01-15 23:10:44 +01:00
parent 12205ee7ba
commit 8dfa0faca9
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -130,6 +130,7 @@ class Missing(object):
continue
if current_thread().peer in self.hashes[objectHash]['peers']:
objectHashes.append(objectHash)
self.hashes[objectHash]['requested'] = time.time()
self.removeObjectFromCurrentThread(objectHash)
if len(objectHashes) >= count:
break