1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-25 01:06:04 +00:00

Report op error only if can run

This commit is contained in:
M66B 2020-09-23 20:33:46 +02:00
parent eb589c0524
commit e6e5d5e9aa

View file

@ -530,8 +530,10 @@ class Core {
if (ops.size() == 0)
state.batchCompleted(folder.id, priority, sequence);
else
state.error(new OperationCanceledException("Processing"));
else {
if (state.batchCanRun(folder.id, priority, sequence))
state.error(new OperationCanceledException("Processing"));
}
} finally {
Log.i(folder.name + " end process state=" + state + " pending=" + ops.size());
}