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

Skip to content
Commit f093b530 authored by Varun Shah's avatar Varun Shah
Browse files

Add locking around SyncManager accounts handling.

The running accounts managed within SyncManager were not protected
behind a lock and caused race conditions when adding new accounts.
This CL adds a lock around the accounts array to avoid such race
conditions.

Bug: 165011202
Test: manual (add new account, observe no "account doesn't exist" errors)
Test: SyncManagerTest
Test: CtsSyncManagerTest
Change-Id: I8ce2a6f93a913bb3cd55ca7a1e292414d45834f6
parent 3609d63a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment