Cleanup without transaction

pull/153/head
M66B 6 years ago
parent 31318d4127
commit 255fc56b17

@ -41,8 +41,6 @@ public class WorkerCleanup extends Worker {
static void cleanup(Context context, boolean manual) {
DB db = DB.getInstance(context);
try {
db.beginTransaction();
Log.i("Start cleanup manual=" + manual);
// Cleanup folders
@ -148,12 +146,9 @@ public class WorkerCleanup extends Worker {
}
}
Log.i("Updated lookup URIs");
db.setTransactionSuccessful();
} catch (Throwable ex) {
Log.e(ex);
} finally {
db.endTransaction();
Log.i("End cleanup");
}
}

Loading…
Cancel
Save