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:
parent
3b10fc5f3e
commit
ba8190d97f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue