diff --git a/td/telegram/TdDb.cpp b/td/telegram/TdDb.cpp index 72c6b65d5..83ce9da6e 100644 --- a/td/telegram/TdDb.cpp +++ b/td/telegram/TdDb.cpp @@ -40,7 +40,7 @@ Result check_encryption(string path) { } EncryptionInfo info; info.is_encrypted = binlog.get_info().wrong_password; - binlog.close(false /*need_sync*/); + binlog.close(false /*need_sync*/).ensure(); return info; }