diff --git a/td/mtproto/TlsInit.cpp b/td/mtproto/TlsInit.cpp index c07732294..e67df4049 100644 --- a/td/mtproto/TlsInit.cpp +++ b/td/mtproto/TlsInit.cpp @@ -304,7 +304,6 @@ class TlsHelloStore { x = get_double_x(x, mod, big_num_context); } key.copy_from(x.to_le_binary(32)); - LOG(ERROR) << td::format::as_hex_dump<0>(td::Slice(key)); break; } } diff --git a/td/telegram/WebPageBlock.cpp b/td/telegram/WebPageBlock.cpp index bafe20934..efa6dd85b 100644 --- a/td/telegram/WebPageBlock.cpp +++ b/td/telegram/WebPageBlock.cpp @@ -13,6 +13,7 @@ #include "td/telegram/ChannelId.h" #include "td/telegram/ContactsManager.h" #include "td/telegram/DialogId.h" +#include "td/telegram/Document.h" #include "td/telegram/DocumentsManager.h" #include "td/telegram/DocumentsManager.hpp" #include "td/telegram/files/FileId.h" diff --git a/td/telegram/files/FileManager.cpp b/td/telegram/files/FileManager.cpp index c841c4d7e..62188c08a 100644 --- a/td/telegram/files/FileManager.cpp +++ b/td/telegram/files/FileManager.cpp @@ -892,7 +892,7 @@ Status FileManager::check_local_location(FileNodePtr node) { return status; } -bool FileManager::try_fix_parital_local_location(FileNodePtr node) { +bool FileManager::try_fix_partial_local_location(FileNodePtr node) { LOG(INFO) << "Trying to fix partial local location"; if (node->local_.type() != LocalFileLocation::Type::Partial) { LOG(INFO) << " failed - not a partial location"; @@ -3447,7 +3447,7 @@ void FileManager::on_error_impl(FileNodePtr node, FileManager::Query::Type type, run_download(node); return; } else if (ends_with(status.message(), "INCREASE_PART_SIZE")) { - if (try_fix_parital_local_location(node)) { + if (try_fix_partial_local_location(node)) { run_download(node); return; } diff --git a/td/telegram/files/FileManager.h b/td/telegram/files/FileManager.h index 4acd06a9c..18d127b87 100644 --- a/td/telegram/files/FileManager.h +++ b/td/telegram/files/FileManager.h @@ -564,7 +564,7 @@ class FileManager : public FileLoadManager::Callback { FileId register_pmc_file_data(FileData &&data); Status check_local_location(FileNodePtr node); - bool try_fix_parital_local_location(FileNodePtr node); + bool try_fix_partial_local_location(FileNodePtr node); Status check_local_location(FullLocalFileLocation &location, int64 &size); void try_flush_node_full(FileNodePtr node, bool new_remote, bool new_local, bool new_generate, FileDbId other_pmc_id); void try_flush_node(FileNodePtr node, const char *source); diff --git a/td/telegram/net/ConnectionCreator.cpp b/td/telegram/net/ConnectionCreator.cpp index caf79976b..8a7c9db26 100644 --- a/td/telegram/net/ConnectionCreator.cpp +++ b/td/telegram/net/ConnectionCreator.cpp @@ -295,6 +295,7 @@ ActorId ConnectionCreator::get_dns_resolver() { } void ConnectionCreator::ping_proxy(int32 proxy_id, Promise promise) { + CHECK(!close_flag_); if (proxy_id == 0) { auto main_dc_id = G()->net_query_dispatcher().main_dc_id(); bool prefer_ipv6 = G()->shared_config().get_option_boolean("prefer_ipv6"); diff --git a/tdutils/td/utils/BigNum.cpp b/tdutils/td/utils/BigNum.cpp index 687482e21..c4ac3dc0a 100644 --- a/tdutils/td/utils/BigNum.cpp +++ b/tdutils/td/utils/BigNum.cpp @@ -16,6 +16,8 @@ char disable_linker_warning_about_empty_file_bignum_cpp TD_UNUSED; #include #include +#include + namespace td { class BigNumContext::Impl {