commit b9ca9724453df6443dc81e9ad191b48fa289119e
parent 9617447a0f9c5e850bd198134eef25bb42311d38
Author: Janus <ysangkok@gmail.com>
Date: Thu, 12 Apr 2018 14:35:47 +0200
lnbase: initialize loop variable in main
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/lnbase.py b/lib/lnbase.py
@@ -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()