tlnbase: initialize loop variable in main - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit b9ca9724453df6443dc81e9ad191b48fa289119e DIR parent 9617447a0f9c5e850bd198134eef25bb42311d38 HTML Author: Janus <ysangkok@gmail.com> Date: Thu, 12 Apr 2018 14:35:47 +0200 lnbase: initialize loop variable in main Diffstat: M lib/lnbase.py | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) --- DIR diff --git a/lib/lnbase.py b/lib/lnbase.py t@@ -415,5 +415,6 @@ if __name__ == "__main__": port = int(port) privkey = b"\x21"*32 + b"\x01" peer = Peer(privkey, host, port, pubkey) + loop = asyncio.get_event_loop() loop.run_until_complete(peer.main_loop()) loop.close()