From 93b91f8602867807d06b2defec6e4f3fcc68f3f4 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 23 Oct 2017 01:16:29 -0400 Subject: [PATCH] block session startup on joinNetwork --- lbrynet/core/Session.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbrynet/core/Session.py b/lbrynet/core/Session.py index f390c6d26..41742305c 100644 --- a/lbrynet/core/Session.py +++ b/lbrynet/core/Session.py @@ -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