data: Catch sqlite database close exception that happens sometimes

This commit is contained in:
Eberhard Graether
2016-05-31 12:34:07 +02:00
parent 8222729bb9
commit d6e2c46420
+8 -1
View File
@@ -21,7 +21,14 @@ SqliteStorage::SqliteStorage(const FilePath& dbFilePath)
SqliteStorage::~SqliteStorage()
{
m_database.close();
try
{
m_database.close();
}
catch(CppSQLite3Exception e)
{
LOG_ERROR(e.errorMessage());
}
}
void SqliteStorage::init()