mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-27 19:26:26 +02:00
Check if folder open on exception
This commit is contained in:
@@ -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 */)) ||
|
||||
|
||||
Reference in New Issue
Block a user