mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 17:27:00 +00:00
Report op error only if can run
This commit is contained in:
parent
eb589c0524
commit
e6e5d5e9aa
1 changed files with 4 additions and 2 deletions
|
@ -530,8 +530,10 @@ class Core {
|
||||||
|
|
||||||
if (ops.size() == 0)
|
if (ops.size() == 0)
|
||||||
state.batchCompleted(folder.id, priority, sequence);
|
state.batchCompleted(folder.id, priority, sequence);
|
||||||
else
|
else {
|
||||||
state.error(new OperationCanceledException("Processing"));
|
if (state.batchCanRun(folder.id, priority, sequence))
|
||||||
|
state.error(new OperationCanceledException("Processing"));
|
||||||
|
}
|
||||||
} finally {
|
} finally {
|
||||||
Log.i(folder.name + " end process state=" + state + " pending=" + ops.size());
|
Log.i(folder.name + " end process state=" + state + " pending=" + ops.size());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue