1
0
Fork 0

Close Sqlite3 database *before* trying to delete the file. Will avoid a segfault when the schema is out of date

This commit is contained in:
Frederic Bouvier 2012-09-26 22:34:48 +02:00
parent 3b10fc5f3e
commit ba8190d97f

View file

@ -929,10 +929,10 @@ NavDataCache::NavDataCache()
// reached this point with no exception, success
break;
} catch (sg_exception& e) {
SG_LOG(SG_NAVCACHE, SG_WARN, "NavCache: init failed:" << e.what()
SG_LOG(SG_NAVCACHE, t == 0 ? SG_WARN : SG_ALERT, "NavCache: init failed:" << e.what()
<< " (attempt " << t << ")");
homePath.remove();
d.reset();
homePath.remove();
}
} // of retry loop