close aio_session before loop
This commit is contained in:
parent
11666da14c
commit
279217bd79
@ -146,8 +146,8 @@ class Geeksbot(commands.Bot):
|
|||||||
|
|
||||||
async def close(self):
|
async def close(self):
|
||||||
try:
|
try:
|
||||||
await super().close()
|
|
||||||
await self.aio_session.close()
|
await self.aio_session.close()
|
||||||
|
await super().close()
|
||||||
except Exception:
|
except Exception:
|
||||||
geeksbot_logger.exception(f"Error Closing Connections.")
|
geeksbot_logger.exception(f"Error Closing Connections.")
|
||||||
geeksbot_logger.info('Exiting...')
|
geeksbot_logger.info('Exiting...')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user