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