close aio_session before loop

This commit is contained in:
Dustin Pianalto 2019-12-23 23:09:20 -09:00
parent 11666da14c
commit 279217bd79

View File

@ -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...')