summary refs log tree commit diff
path: root/src/Cache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Cache.cpp')
-rw-r--r--src/Cache.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp

index 452567c3..a1242633 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp
@@ -878,9 +878,9 @@ Cache::saveState(const mtx::responses::Sync &res) txn.commit(); for (const auto &room : res.rooms.join) { - auto txn = lmdb::txn::begin(env_); - notifyForReadReceipts(txn, room.first); - txn.commit(); + auto tmpTxn = lmdb::txn::begin(env_); + notifyForReadReceipts(tmpTxn, room.first); + tmpTxn.commit(); } }