mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 11:28:41 +01:00
Fixed stopping sent service when not monitoring operations
This commit is contained in:
@@ -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<>();
|
||||
|
||||
Reference in New Issue
Block a user