Skip indexing on OOM

pull/174/head
M66B 6 years ago
parent 4214bc81f5
commit 1689678cf9

@ -86,6 +86,8 @@ public class WorkerFts extends Worker {
if (ids.size() > INDEX_BATCH_SIZE)
markIndexed(db, ids);
} catch (Throwable ex) {
if (ex instanceof OutOfMemoryError)
ids.add(id);
Log.e(ex);
}
}

Loading…
Cancel
Save