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)))