Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7dee7d26 authored by Fahim M. Choudhury's avatar Fahim M. Choudhury
Browse files

fix: synchronize token refresh to mitigate race condition

synchronized{} is used to mitigate race conditions between multiple threads of Account Manager trying to refresh the token simultaneously by BearerAuthInterceptor and also Notes app (via InputStreamBinder) in OidcTokenRefresher.

If there's a valid authState available, it'll be used. Otherwise, a new access token will be requested.

The fix is based on upstream's implementation. https://github.com/bitfireAT/davx5-ose/pull/1547
parent 74ce6e1d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment