From 3a46c9fd3e3ff153d956e267c10f1486cff8dcae Mon Sep 17 00:00:00 2001 From: Ishigh1 Date: Fri, 17 Jan 2025 20:05:02 +0100 Subject: [PATCH] LADX: Closing the client window closes the window (#4350) --- LinksAwakeningClient.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LinksAwakeningClient.py b/LinksAwakeningClient.py index aede742b..e2e16922 100644 --- a/LinksAwakeningClient.py +++ b/LinksAwakeningClient.py @@ -560,6 +560,10 @@ class LinksAwakeningContext(CommonContext): 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()