Browse Source

Suppress illegal state and folder closed exception

main
M66B 6 years ago
parent
commit
3137e3f3fb
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

@ -637,7 +637,8 @@ public class ServiceSynchronize extends LifecycleService {
Log.e(Helper.TAG, folder.name + " " + ex + "\n" + Log.getStackTraceString(ex)); Log.e(Helper.TAG, folder.name + " " + ex + "\n" + Log.getStackTraceString(ex));
reportError(account.name, folder.name, ex); reportError(account.name, folder.name, ex);
db.folder().setFolderError(folder.id, Helper.formatThrowable(ex));
if (!(ex instanceof IllegalStateException) && !(ex instanceof FolderClosedException))
db.folder().setFolderError(folder.id, Helper.formatThrowable(ex));
synchronized (state) { synchronized (state) {
state.notifyAll(); state.notifyAll();


Loading…
Cancel
Save