mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Prevent race condition
This commit is contained in:
parent
d1600ad188
commit
516da33f8c
1 changed files with 2 additions and 0 deletions
|
@ -1331,6 +1331,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
db.account().setAccountBackoff(account.id, null);
|
||||
while (state.isRunning() && currentThread.equals(accountThread)) {
|
||||
state.reset();
|
||||
if (!state.isRunning())
|
||||
break;
|
||||
Log.i(account.name + " run thread=" + currentThread);
|
||||
|
||||
final ObjectHolder<TwoStateOwner> cowner = new ObjectHolder<>();
|
||||
|
|
Loading…
Reference in a new issue