mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[core] Fix deadlock when clearing userdata in login
This commit is contained in:
parent
51377e8548
commit
b759d9dbb1
|
@ -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.')
|
||||
|
|
Loading…
Reference in a new issue