diff options
Diffstat (limited to 'src/db.cpp')
-rw-r--r-- | src/db.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db.cpp b/src/db.cpp index 988c10caa2..21b1e0ae8e 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -170,9 +170,9 @@ void CDB::Close() { if (!pdb) return; - if (!vTxn.empty()) - vTxn.front()->abort(); - vTxn.clear(); + if (activeTxn) + activeTxn->abort(); + activeTxn = NULL; pdb = NULL; // Flush database activity from memory pool to disk log |