Added logic for this to run only if on main

This commit is contained in:
hornet 2022-10-09 00:42:40 -04:00
parent a0db0dd040
commit 25f14de8b9

View File

@ -145,4 +145,7 @@ async def main():
finally: finally:
await d.disconnect() await d.disconnect()
asyncio.run(main())
if __name__ == "__main__":
asyncio.run(main())