Check if folder open on exception

pull/189/head
M66B 4 years ago
parent 8eb2fa75f1
commit 3ab9089e5f

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

Loading…
Cancel
Save