mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 05:15:13 +02:00
Consider orphan database as garbage
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user