1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-31 20:25:38 +00:00

Consider orphan database as garbage

This commit is contained in:
M66B 2021-04-25 16:46:20 +02:00
parent c12426361b
commit a9034efbfe

View file

@ -308,8 +308,7 @@ public abstract class DB extends RoomDatabase {
if (sInstance != null &&
sContext != null && !sContext.equals(acontext))
try {
Log.e("Old database instance pid=" + android.os.Process.myPid() + "/" + sPid);
sInstance.close();
Log.e("Orphan database instance pid=" + android.os.Process.myPid() + "/" + sPid);
sInstance = null;
} catch (Throwable ex) {
Log.e(ex);