From e745e132124b8aeb578b5d3d7c1fdd5c1fc61fa1 Mon Sep 17 00:00:00 2001 From: Nick80835 <24271245+Nick80835@users.noreply.github.com> Date: Thu, 6 Mar 2025 12:21:08 -0500 Subject: [PATCH] explicitly disconnect client --- ubot/__init__.py | 1 + 1 file changed, 1 insertion(+) 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)