1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

Prevent lock out

This commit is contained in:
M66B 2020-04-08 20:43:45 +02:00
parent c670ec5a9b
commit 3314ac0cc2

View file

@ -164,10 +164,8 @@ class Core {
" group=" + group +
" retry=" + retry);
if (ifolder != null && !ifolder.isOpen()) {
state.error(new FolderClosedException(ifolder));
if (ifolder != null && !ifolder.isOpen())
break;
}
// Fetch most recent copy of message
EntityMessage message = null;
@ -510,8 +508,6 @@ class Core {
if (ops.size() == 0)
state.batchCompleted(folder.id, priority, sequence);
else
state.error(new FolderClosedException(ifolder));
} finally {
Log.i(folder.name + " end process state=" + state + " pending=" + ops.size());
}