Store strong references to async tasks

Reason: https://news.t0.vc/IEUC
This commit is contained in:
Tanner Collin 2023-02-12 18:38:36 +00:00
parent f01eeacbce
commit 278d30c421

View File

@ -165,6 +165,6 @@ if __name__ == '__main__':
app.router.add_get('/history/{date}', history) app.router.add_get('/history/{date}', history)
loop = asyncio.get_event_loop() loop = asyncio.get_event_loop()
loop.create_task(run_proxies()) a = loop.create_task(run_proxies())
loop.create_task(get_data()) b = loop.create_task(get_data())
web.run_app(app, port=6901) web.run_app(app, port=6901)