Fix crash on logout
This commit is contained in:
parent
2aabe9dcac
commit
417cc07172
@ -969,6 +969,7 @@ Cache::nextBatchToken()
|
|||||||
void
|
void
|
||||||
Cache::deleteData()
|
Cache::deleteData()
|
||||||
{
|
{
|
||||||
|
if (this->databaseReady_) {
|
||||||
this->databaseReady_ = false;
|
this->databaseReady_ = false;
|
||||||
// TODO: We need to remove the env_ while not accepting new requests.
|
// TODO: We need to remove the env_ while not accepting new requests.
|
||||||
lmdb::dbi_close(env_, syncStateDb_);
|
lmdb::dbi_close(env_, syncStateDb_);
|
||||||
@ -999,6 +1000,7 @@ Cache::deleteData()
|
|||||||
deleteSecret(mtx::secret_storage::secrets::cross_signing_self_signing);
|
deleteSecret(mtx::secret_storage::secrets::cross_signing_self_signing);
|
||||||
deleteSecret("pickle_secret", true);
|
deleteSecret("pickle_secret", true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//! migrates db to the current format
|
//! migrates db to the current format
|
||||||
bool
|
bool
|
||||||
|
Loading…
Reference in New Issue
Block a user