Stop send service when no more operations

This commit is contained in:
M66B 2019-07-25 09:23:15 +02:00
parent 7fcf1da77a
commit 687fc722e5
1 changed files with 5 additions and 1 deletions

View File

@ -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() {