1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Check if folder open on exception

This commit is contained in:
M66B 2020-11-17 10:25:26 +01:00
parent 8eb2fa75f1
commit 3ab9089e5f

View file

@ -461,14 +461,15 @@ class Core {
db.endTransaction();
}
if (ifolder != null && !ifolder.isOpen())
break;
if (op.tries >= TOTAL_RETRY_MAX ||
ex instanceof OutOfMemoryError ||
ex instanceof FileNotFoundException ||
ex instanceof FolderNotFoundException ||
ex instanceof IllegalArgumentException ||
ex instanceof SQLiteConstraintException ||
(ex instanceof IllegalStateException &&
EntityOperation.SYNC.equals(op.name)) ||
(!ConnectionHelper.isIoError(ex) &&
(ex.getCause() instanceof BadCommandException ||
ex.getCause() instanceof CommandFailedException /* NO */)) ||