block session startup on joinNetwork

This commit is contained in:
Jack Robison 2017-10-23 01:16:29 -04:00
parent 1bcf7bd2f7
commit 93b91f8602
No known key found for this signature in database
GPG key ID: 284699E7404E3CFF

View file

@ -260,8 +260,7 @@ class Session(object):
addresses.append(value)
return addresses
def start_dht(addresses):
self.dht_node.joinNetwork(addresses)
def start_dht(join_network_result):
self.peer_finder.run_manage_loop()
self.hash_announcer.run_manage_loop()
return True
@ -283,6 +282,7 @@ class Session(object):
dl = defer.DeferredList(ds)
dl.addCallback(join_resolved_addresses)
dl.addCallback(self.dht_node.joinNetwork)
dl.addCallback(start_dht)
return dl