mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 06:33:55 -06:00
Always callback if there is a callback, even if no auth data
Because not having auth data is a reason to return no profile too. Otherwise the other side might wait for a response for a long time. Contributes to issue CURA-8539.
This commit is contained in:
parent
1636cca601
commit
30d19844f2
1 changed files with 3 additions and 0 deletions
|
@ -89,6 +89,9 @@ class AuthorizationService:
|
|||
self.deleteAuthData()
|
||||
if callback is not None:
|
||||
callback(None)
|
||||
else:
|
||||
if callback is not None:
|
||||
callback(None)
|
||||
|
||||
self._parseJWT(callback = store_profile)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue