Fix circular import

- previous commit broke
This commit is contained in:
Peter Šurda 2018-03-13 11:42:43 +01:00
parent af2bb95601
commit 4b995e7996
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -4,7 +4,6 @@ from threading import RLock
from inventory import Inventory
import network.connectionpool
from network.dandelion import Dandelion
from network.stats import pendingDownload
from randomtrackingdict import RandomTrackingDict
from state import missingObjects
@ -55,7 +54,7 @@ class ObjectTracker(object):
def clean(self):
if self.lastCleaned < time.time() - ObjectTracker.invCleanPeriod:
if haveBloom:
if pendingDownload() == 0:
if len(missingObjects) == 0:
self.initInvBloom()
self.initAddrBloom()
else: