From 6b044bf2aef55d0582cb7ed8de01096a4422aa23 Mon Sep 17 00:00:00 2001 From: Janus Date: Thu, 12 Apr 2018 14:32:37 +0200 Subject: [PATCH] network: do not acquire lightninglock for lnbase --- lib/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/network.py b/lib/network.py index 91bf7fce..eaa88406 100644 --- a/lib/network.py +++ b/lib/network.py @@ -1066,9 +1066,9 @@ class Network(util.DaemonThread): self.init_headers_file() self.futures = [] networkAndWalletLock = QLock() - self.lightninglock.acquire() def asyncioThread(): if self.config.get("lightning", False): + self.lightninglock.acquire() if self.lightningrpc is not None and self.lightningworker is not None: task = asyncio.ensure_future(asyncio.gather(self.lightningrpc.run(networkAndWalletLock), self.lightningworker.run(networkAndWalletLock))) self.asyncio_loop.run_forever()