Commit 738e0a99 authored by Joel Beckmeyer's avatar Joel Beckmeyer
Browse files

fix DeprecationWarnings on 3.10

parent 69947bc6
......@@ -45,8 +45,9 @@ async def start_webserver():
await site.start()
def main():
loop = asyncio.get_event_loop()
asyncio.ensure_future(start_webserver())
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
asyncio.ensure_future(start_webserver(), loop=loop)
loop.run_forever()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment