lightning: fix hub backend loop availability

This commit is contained in:
Janus 2018-04-12 19:14:04 +02:00
parent 18cbc6b90d
commit 6c588dc948

View File

@ -1009,6 +1009,7 @@ class Network(util.DaemonThread):
networkAndWalletLock = QLock()
def asyncioThread():
if self.config.get("lightning", False):
asyncio.set_event_loop(self.asyncio_loop)
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)))