Fixed stopping sent service when not monitoring operations

pull/184/head
M66B 4 years ago
parent e17443eb13
commit d7706f0e72

@ -99,6 +99,9 @@ public class ServiceSend extends ServiceBase {
} catch (Throwable ex) {
Log.w(ex);
}
if (unsent == null || unsent.count == 0)
stopSelf();
}
}
});
@ -110,9 +113,6 @@ public class ServiceSend extends ServiceBase {
if (operations == null)
operations = new ArrayList<>();
if (operations.size() == 0)
stopSelf();
final List<TupleOperationEx> process = new ArrayList<>();
List<Long> ops = new ArrayList<>();

Loading…
Cancel
Save