mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Properly close cursors before commit and db deletion
This commit is contained in:
parent
7dd90ed6f0
commit
465a67bfaf
1 changed files with 2 additions and 0 deletions
|
@ -1748,9 +1748,11 @@ Cache::runMigrations()
|
|||
combineOlmSessionKeyFromCurveAndSessionId(curveKey, session_id),
|
||||
json);
|
||||
}
|
||||
olmCursor.close();
|
||||
|
||||
oldDb.drop(txn, true);
|
||||
}
|
||||
dbNames.close();
|
||||
|
||||
if (doCommit) txn.commit();
|
||||
} catch (const lmdb::error &e) {
|
||||
|
|
Loading…
Reference in a new issue