Prevent crash, consider idle exceptions as unrecoverable

This commit is contained in:
M66B 2019-05-05 14:34:25 +02:00
parent df8d10b254
commit c22badd520
1 changed files with 1 additions and 3 deletions

View File

@ -853,9 +853,7 @@ public class ServiceSynchronize extends LifecycleService {
}
} catch (Throwable ex) {
Log.e(folder.name, ex);
Core.reportError(ServiceSynchronize.this, account, folder, ex);
db.folder().setFolderError(folder.id, Helper.formatThrowable(ex, true));
state.error(ex);
state.error(new FolderClosedException(ifolder, "IDLE"));
} finally {
Log.i(folder.name + " end idle");
}