lnbase: initialize loop variable in main

This commit is contained in:
Janus 2018-04-12 14:35:47 +02:00 committed by ThomasV
parent 9617447a0f
commit b9ca972445

View file

@ -415,5 +415,6 @@ if __name__ == "__main__":
port = int(port) port = int(port)
privkey = b"\x21"*32 + b"\x01" privkey = b"\x21"*32 + b"\x01"
peer = Peer(privkey, host, port, pubkey) peer = Peer(privkey, host, port, pubkey)
loop = asyncio.get_event_loop()
loop.run_until_complete(peer.main_loop()) loop.run_until_complete(peer.main_loop())
loop.close() loop.close()