lightning: fix hub backend loop availability

This commit is contained in:
Janus 2018-04-12 19:14:04 +02:00
parent ed7961c0ce
commit 2dc8f5efe8

View File

@ -1068,6 +1068,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)))