From db30857f359dd246ddce2117919a2a5a349999ce Mon Sep 17 00:00:00 2001 From: trojvn Date: Tue, 28 Jan 2025 17:00:31 +0300 Subject: [PATCH] fix? --- basethon/json_converter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/basethon/json_converter.py b/basethon/json_converter.py index a192ee6..a70b35f 100644 --- a/basethon/json_converter.py +++ b/basethon/json_converter.py @@ -39,7 +39,9 @@ class JsonConverter(BaseSession): ss._dc_id = client.session.dc_id # type: ignore ss._port = client.session.port # type: ignore string_session = ss.save() - del ss, client + asyncio.run(client.disconnect()) # type: ignore + del client + del ss loop.close() json_data["proxy"] = self.__proxy json_data["string_session"] = string_session