diff --git a/ubot/__init__.py b/ubot/__init__.py index 3d5027b..f6adaef 100644 --- a/ubot/__init__.py +++ b/ubot/__init__.py @@ -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)