mirror of https://github.com/M66B/FairEmail.git
Force crash reporting for DB lock
This commit is contained in:
parent
9173ec038c
commit
f79b1579f9
|
@ -419,6 +419,8 @@ public abstract class DB extends RoomDatabase {
|
|||
|
||||
Log.i("Disabled view invalidation");
|
||||
} catch (ReflectiveOperationException ex) {
|
||||
// Should never happen
|
||||
Log.forceCrashReporting();
|
||||
Log.e(ex);
|
||||
}
|
||||
|
||||
|
@ -459,6 +461,8 @@ public abstract class DB extends RoomDatabase {
|
|||
lock.value.release();
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
// Should never happen
|
||||
Log.forceCrashReporting();
|
||||
Log.e(ex);
|
||||
}
|
||||
Log.i("DB critical section end");
|
||||
|
@ -584,6 +588,7 @@ public abstract class DB extends RoomDatabase {
|
|||
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
|
||||
at androidx.room.RoomDatabase.inTransaction(RoomDatabase.java:706)
|
||||
*/
|
||||
// Should never happen
|
||||
Log.forceCrashReporting();
|
||||
Log.e(ex);
|
||||
// FrameworkSQLiteOpenHelper.innerGetDatabase will delete the database
|
||||
|
|
Loading…
Reference in New Issue