From 865d39d512552785644a8b52532f12a36c2eead1 Mon Sep 17 00:00:00 2001 From: trojvn Date: Sat, 7 Mar 2026 14:19:36 +0300 Subject: [PATCH] feat(process): remove redundant client deletion Remove redundant client deletion in the `ProcessThon` class to prevent potential issues with the client object being deleted twice. This change ensures that the client is only deleted once when the process is closed, maintaining consistency and avoiding potential errors. --- thon/process.py | 1 - 1 file changed, 1 deletion(-) diff --git a/thon/process.py b/thon/process.py index 17a7e83..f38c3fe 100644 --- a/thon/process.py +++ b/thon/process.py @@ -173,7 +173,6 @@ class ProcessThon(Data): await self.client(UpdateStatusRequest(offline=True)) with contextlib.suppress(Exception): await self.client.disconnect() # type: ignore # ty:ignore[unused-ignore-comment] - del self.__client async def __aenter__(self) -> Self | str: r = await self.check()