Suppress illegal state and folder closed exception

This commit is contained in:
M66B
2018-09-09 07:15:51 +00:00
parent 8fdeccea98
commit 3137e3f3fb

View File

@@ -637,7 +637,8 @@ public class ServiceSynchronize extends LifecycleService {
Log.e(Helper.TAG, folder.name + " " + ex + "\n" + Log.getStackTraceString(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) {
state.notifyAll();