mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-12 14:43:54 +00:00
Allow cleaner to work after database is closed.
This commit is contained in:
@@ -39,6 +39,14 @@ void Database::close(FnMut<void()> &&done) {
|
||||
});
|
||||
}
|
||||
|
||||
void Database::waitForCleaner(FnMut<void()> &&done) {
|
||||
_wrapped.with([
|
||||
done = std::move(done)
|
||||
](Implementation &unwrapped) mutable {
|
||||
unwrapped.waitForCleaner(std::move(done));
|
||||
});
|
||||
}
|
||||
|
||||
void Database::put(
|
||||
const Key &key,
|
||||
QByteArray &&value,
|
||||
|
||||
Reference in New Issue
Block a user