Minor fix of a deprecation warning

This commit is contained in:
DevilXD committed 2022-07-28 08:08:02 +02:00
1 parent 0f38e7bffd
commit c3854937b9
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -1791,7 +1791,8 @@ if __name__ == "__main__":
if task.exception() is not None:
exit_event.set()
loop = asyncio.get_event_loop()
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
exit_event = asyncio.Event()
main_task = loop.create_task(main(exit_event))
main_task.add_done_callback(main_exit)