forked from LBRYCommunity/lbry-sdk
don't attempt to announce blobs until we we have contacts in routing
This commit is contained in:
parent
7931397595
commit
5fe8022b15
1 changed files with 3 additions and 0 deletions
|
@ -74,6 +74,9 @@ class DHTHashAnnouncer(object):
|
|||
|
||||
@defer.inlineCallbacks
|
||||
def manage(self):
|
||||
if not self.dht_node.contacts:
|
||||
log.info("Not ready to start announcing hashes")
|
||||
return
|
||||
need_reannouncement = yield self.storage.get_blobs_to_announce()
|
||||
if need_reannouncement:
|
||||
yield self.immediate_announce(need_reannouncement)
|
||||
|
|
Loading…
Reference in a new issue