mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 17:18:52 -06:00
Close database
This commit is contained in:
@@ -90,7 +90,6 @@ public class LoopDBImporter extends AbstractImporter
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized void importHabitsFromFile(@NonNull File file)
|
public synchronized void importHabitsFromFile(@NonNull File file)
|
||||||
throws IOException
|
|
||||||
{
|
{
|
||||||
Database db = opener.open(file);
|
Database db = opener.open(file);
|
||||||
MigrationHelper helper = new MigrationHelper(db);
|
MigrationHelper helper = new MigrationHelper(db);
|
||||||
@@ -138,5 +137,6 @@ public class LoopDBImporter extends AbstractImporter
|
|||||||
}
|
}
|
||||||
|
|
||||||
runner.notifyListeners(null, null);
|
runner.notifyListeners(null, null);
|
||||||
|
db.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user