Fix circular import

- previous commit broke
python3android
Peter Šurda 5 years ago
parent af2bb95601
commit 4b995e7996
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

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

Loading…
Cancel
Save