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:
parent
c12426361b
commit
a9034efbfe
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue