From a9034efbfeef18268972aeedb1a02eabb12b482b Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 25 Apr 2021 16:46:20 +0200 Subject: [PATCH] Consider orphan database as garbage --- app/src/main/java/eu/faircode/email/DB.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/DB.java b/app/src/main/java/eu/faircode/email/DB.java index 3789f6d4a4..a697614b2a 100644 --- a/app/src/main/java/eu/faircode/email/DB.java +++ b/app/src/main/java/eu/faircode/email/DB.java @@ -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);