From 3aec61842f55189463038af0ab3938c5e2e31714 Mon Sep 17 00:00:00 2001 From: Ishigh <45936615+Ishigh1@users.noreply.github.com> Date: Mon, 9 Dec 2024 05:53:24 +0100 Subject: [PATCH] Update LinksAwakeningClient.py --- LinksAwakeningClient.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LinksAwakeningClient.py b/LinksAwakeningClient.py index 298788098d9e..7b74cd323238 100644 --- a/LinksAwakeningClient.py +++ b/LinksAwakeningClient.py @@ -560,6 +560,10 @@ async def server_auth(self, password_requested: bool = False): while self.client.auth == None: await asyncio.sleep(0.1) + + # Just return if we're closing + if self.exit_event.is_set(): + return self.auth = self.client.auth await self.send_connect()