Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6373e95 authored by Vasu Nori's avatar Vasu Nori
Browse files

close() database should close the db no matter what the ref count says

bug:2455416
Change-Id: Ia995c952c6941fbaa016c5b251e4980fa5328fbb
parent 5bf67247
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -852,7 +852,11 @@ public class SQLiteDatabase extends SQLiteClosable {
        lock();
        try {
            closeClosable();
            releaseReference();
            // close this database instance - regardless of its reference count value
            onAllReferencesReleased();
            // set path to null, to cause bad stuff to happen if this object is reused without
            // being opened first
            mPath = null;
        } finally {
            unlock();
        }