From 9949a8fd585a0085dcc47d38cb825f99ad06464d 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 --- electrum/network.py | 1 + 1 file changed, 1 insertion(+) diff --git a/electrum/network.py b/electrum/network.py index 57e4ab43..f73d1102 100644 --- a/electrum/network.py +++ b/electrum/network.py @@ -1096,6 +1096,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)))