From 2dc8f5efe8a6d3a7f525f313707528c04fc85d97 Mon Sep 17 00:00:00 2001 From: Janus Date: Thu, 12 Apr 2018 19:14:04 +0200 Subject: [PATCH] lightning: fix hub backend loop availability --- lib/network.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/network.py b/lib/network.py index eaa88406..cd384595 100644 --- a/lib/network.py +++ b/lib/network.py @@ -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)))