network: do not acquire lightninglock for lnbase

This commit is contained in:
Janus 2018-04-12 14:32:37 +02:00
parent c0a8fd811f
commit afaef1e7ab

View File

@ -1094,9 +1094,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()