Browse Source

Reset backup after opening folders

main
M66B 6 years ago
parent
commit
624191a58e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 2
- 1
app/src/main/java/eu/faircode/email/ServiceSynchronize.java View File

@ -480,7 +480,6 @@ public class ServiceSynchronize extends LifecycleService {
db.account().setAccountState(account.id, "connecting"); db.account().setAccountState(account.id, "connecting");
istore.connect(account.host, account.port, account.user, account.password); istore.connect(account.host, account.port, account.user, account.password);
backoff = CONNECT_BACKOFF_START;
db.account().setAccountState(account.id, "connected"); db.account().setAccountState(account.id, "connected");
db.account().setAccountError(account.id, null); db.account().setAccountError(account.id, null);
@ -679,6 +678,8 @@ public class ServiceSynchronize extends LifecycleService {
idlers.add(idle); idlers.add(idle);
} }
backoff = CONNECT_BACKOFF_START;
BroadcastReceiver processFolder = new BroadcastReceiver() { BroadcastReceiver processFolder = new BroadcastReceiver() {
@Override @Override
public void onReceive(Context context, final Intent intent) { public void onReceive(Context context, final Intent intent) {


Loading…
Cancel
Save