Added fail-safe

pull/210/head
M66B 2 years ago
parent e49cf7a529
commit 3118a6eb48

@ -68,7 +68,8 @@ public class WorkerDailyRules extends Worker {
int count = 0;
List<Long> mids = db.message().getMessageIdsByFolder(folder.id);
for (long mid : mids) {
for (long mid : mids)
try {
EntityMessage message = db.message().getMessage(mid);
if (message == null)
continue;
@ -94,6 +95,8 @@ public class WorkerDailyRules extends Worker {
if (rule.stop)
break;
}
} catch (Throwable ex) {
Log.e(ex);
}
EntityLog.log(context, EntityLog.Type.Rules, folder,

Loading…
Cancel
Save