mirror of https://github.com/M66B/FairEmail.git
Stop send service when no more operations
This commit is contained in:
parent
7fcf1da77a
commit
687fc722e5
|
@ -106,9 +106,13 @@ public class ServiceSend extends LifecycleService {
|
|||
process = true;
|
||||
ops.add(op.id);
|
||||
}
|
||||
for (Long h : handling)
|
||||
if (!ops.contains(h))
|
||||
process = true;
|
||||
|
||||
handling = ops;
|
||||
|
||||
if (handling.size() > 0 && process) {
|
||||
if (process) {
|
||||
Log.i("OUTBOX operations=" + operations.size());
|
||||
|
||||
executor.submit(new Runnable() {
|
||||
|
|
Loading…
Reference in New Issue