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:
parent
8eb2fa75f1
commit
3ab9089e5f
1 changed files with 3 additions and 2 deletions
|
@ -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 */)) ||
|
||||
|
|
Loading…
Reference in a new issue