network: do not acquire lightninglock for lnbase
This commit is contained in:
parent
5e0def63c6
commit
6b044bf2ae
@ -1066,9 +1066,9 @@ class Network(util.DaemonThread):
|
|||||||
self.init_headers_file()
|
self.init_headers_file()
|
||||||
self.futures = []
|
self.futures = []
|
||||||
networkAndWalletLock = QLock()
|
networkAndWalletLock = QLock()
|
||||||
self.lightninglock.acquire()
|
|
||||||
def asyncioThread():
|
def asyncioThread():
|
||||||
if self.config.get("lightning", False):
|
if self.config.get("lightning", False):
|
||||||
|
self.lightninglock.acquire()
|
||||||
if self.lightningrpc is not None and self.lightningworker is not None:
|
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)))
|
task = asyncio.ensure_future(asyncio.gather(self.lightningrpc.run(networkAndWalletLock), self.lightningworker.run(networkAndWalletLock)))
|
||||||
self.asyncio_loop.run_forever()
|
self.asyncio_loop.run_forever()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user