From 81f20ae4ec26923bb20680c2d76fe1810982c6df Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 19 Mar 2021 01:24:57 +0300 Subject: [PATCH] Ignore FLOOD_WAIT errors got getGroupCallStreamSegment. --- td/telegram/GroupCallManager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/td/telegram/GroupCallManager.cpp b/td/telegram/GroupCallManager.cpp index 51e52dfa4..08861a924 100644 --- a/td/telegram/GroupCallManager.cpp +++ b/td/telegram/GroupCallManager.cpp @@ -42,9 +42,11 @@ class GetGroupCallStreamQuery : public Td::ResultHandler { auto input_stream = make_tl_object(input_group_call_id.get_input_group_call(), time_offset, scale); int32 flags = 0; - send_query(G()->net_query_creator().create( + auto query = G()->net_query_creator().create( telegram_api::upload_getFile(flags, false /*ignored*/, false /*ignored*/, std::move(input_stream), 0, 1 << 20), - stream_dc_id, NetQuery::Type::DownloadSmall)); + stream_dc_id, NetQuery::Type::DownloadSmall); + query->total_timeout_limit_ = 0; + send_query(std::move(query)); } void on_result(uint64 id, BufferSlice packet) override {