Consider orphan database as garbage

pull/198/head
M66B 4 years ago
parent c12426361b
commit a9034efbfe

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

Loading…
Cancel
Save