mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Workaround Android bug
This commit is contained in:
parent
3e1b01dbc2
commit
c3a207e803
1 changed files with 2 additions and 0 deletions
|
@ -2036,6 +2036,7 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
outbox = db.folder().getOutbox();
|
||||
if (outbox == null) {
|
||||
EntityLog.log(ServiceSynchronize.this, "No outbox, halt");
|
||||
Thread.sleep(3000);
|
||||
stopSelf();
|
||||
return;
|
||||
}
|
||||
|
@ -2043,6 +2044,7 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
List<EntityAccount> accounts = db.account().getAccounts(true);
|
||||
if (accounts.size() == 0) {
|
||||
EntityLog.log(ServiceSynchronize.this, "No accounts, halt");
|
||||
Thread.sleep(3000);
|
||||
stopSelf();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue