Suppress error

This commit is contained in:
M66B 2019-01-22 16:16:32 +00:00
parent ae5a2a51ea
commit 7f16c1a23a
1 changed files with 3 additions and 1 deletions

View File

@ -1232,7 +1232,9 @@ public class ServiceSynchronize extends LifecycleService {
} catch (Throwable ex) {
Log.e(folder.name, ex);
reportError(account, folder, ex);
db.folder().setFolderError(folder.id, Helper.formatThrowable(ex));
// IllegalStateException: sync when store disconnected
if (!(ex instanceof IllegalStateException))
db.folder().setFolderError(folder.id, Helper.formatThrowable(ex));
state.error();
} finally {
if (shouldClose) {