2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-22 10:09:40 +00:00

explicitly disconnect client

This commit is contained in:
Nick80835 2025-03-06 12:21:08 -05:00
parent a50c6ab6d9
commit e745e13212

View File

@ -74,6 +74,7 @@ class MicroBot():
logger.info("Stopping bot.")
await self.loader.aioclient.close()
await client.disconnect()
if exit_code is not None:
logger.info("Exiting with exit code: %i", exit_code)