Update Akeno/__main__.py
Browse files- Akeno/__main__.py +5 -4
Akeno/__main__.py
CHANGED
@@ -56,11 +56,12 @@ async def main():
|
|
56 |
except Exception as e:
|
57 |
LOGS.error(f"Error in main: {e}")
|
58 |
finally:
|
59 |
-
await
|
60 |
-
|
61 |
-
|
|
|
|
|
62 |
task.cancel()
|
63 |
-
await asyncio.gather(*tasks, return_exceptions=True)
|
64 |
LOGS.info("All tasks completed successfully!")
|
65 |
|
66 |
if __name__ == "__main__":
|
|
|
56 |
except Exception as e:
|
57 |
LOGS.error(f"Error in main: {e}")
|
58 |
finally:
|
59 |
+
await asyncio.gather(
|
60 |
+
aiohttpsession.close()
|
61 |
+
)
|
62 |
+
|
63 |
+
for task in asyncio.all_tasks():
|
64 |
task.cancel()
|
|
|
65 |
LOGS.info("All tasks completed successfully!")
|
66 |
|
67 |
if __name__ == "__main__":
|