lightning: fix hub backend loop availability
This commit is contained in:
parent
ed7961c0ce
commit
2dc8f5efe8
@ -1068,6 +1068,7 @@ class Network(util.DaemonThread):
|
|||||||
networkAndWalletLock = QLock()
|
networkAndWalletLock = QLock()
|
||||||
def asyncioThread():
|
def asyncioThread():
|
||||||
if self.config.get("lightning", False):
|
if self.config.get("lightning", False):
|
||||||
|
asyncio.set_event_loop(self.asyncio_loop)
|
||||||
self.lightninglock.acquire()
|
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)))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user