From b759d9dbb19c7bc88e87b74c93c95fe0d590feeb Mon Sep 17 00:00:00 2001 From: derrod Date: Thu, 27 Jul 2023 13:12:10 +0200 Subject: [PATCH] [core] Fix deadlock when clearing userdata in login --- legendary/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legendary/core.py b/legendary/core.py index 13f32d2..f2738f7 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -239,7 +239,7 @@ class LegendaryCore: userdata = self.egs.start_session(lock.data['refresh_token']) except InvalidCredentialsError: self.log.error('Stored credentials are no longer valid! Please login again.') - self.lgd.invalidate_userdata() + lock.clear() return False except (HTTPError, ConnectionError) as e: self.log.error(f'HTTP request for login failed: {e!r}, please try again later.')