Stop send service when no more operations

pull/159/head
M66B 5 years ago
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…
Cancel
Save