From 514777aaf191da32b2b724532cbf9667b9aabeea Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 5 Apr 2021 02:27:13 +0300 Subject: [PATCH] Fix infinite updates processing. --- td/telegram/GroupCallManager.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/td/telegram/GroupCallManager.cpp b/td/telegram/GroupCallManager.cpp index 69a69b5cd..facbfdb90 100644 --- a/td/telegram/GroupCallManager.cpp +++ b/td/telegram/GroupCallManager.cpp @@ -1566,11 +1566,13 @@ bool GroupCallManager::process_pending_group_call_participant_updates(InputGroup diff += cur_diff; } pending_version_updates.erase(it); - } else if (!group_call->syncing_participants) { + } else { // found a gap - LOG(INFO) << "Receive " << participants.size() << " group call participant updates with version " << version - << ", but current version is " << group_call->version; - sync_participants_timeout_.add_timeout_in(group_call->group_call_id.get(), 1.0); + if (!group_call->syncing_participants) { + LOG(INFO) << "Receive " << participants.size() << " group call participant updates with version " << version + << ", but current version is " << group_call->version; + sync_participants_timeout_.add_timeout_in(group_call->group_call_id.get(), 1.0); + } break; } }