From 7360015fa4b5ad604d0b86bbe6ab09f8089e1711 Mon Sep 17 00:00:00 2001 From: jobevers Date: Sat, 28 Jan 2017 10:55:59 -0800 Subject: [PATCH] small refactor --- lbrynet/core/Wallet.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lbrynet/core/Wallet.py b/lbrynet/core/Wallet.py index 14aad4535..b5a9401e5 100644 --- a/lbrynet/core/Wallet.py +++ b/lbrynet/core/Wallet.py @@ -895,15 +895,13 @@ class LBRYumWallet(Wallet): def _start(self): network_start_d = defer.Deferred() + self.config = make_config(self._config) def setup_network(): - self.config = make_config(self._config) self.network = Network(self.config) log.info("Loading the wallet") return defer.succeed(self.network.start()) - d = setup_network() - def check_started(): if self.network.is_connecting(): if self._is_first_run(): @@ -919,6 +917,7 @@ class LBRYumWallet(Wallet): self._start_check = task.LoopingCall(check_started) + d = setup_network() d.addCallback(lambda _: self._load_wallet()) d.addCallback(self._save_wallet) d.addCallback(lambda _: self._start_check.start(.1))