From 8ac0b02a6def3158f12a79fe3164f7066e3b0f93 Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 15 Aug 2021 12:51:57 +0300 Subject: [PATCH] Improve warnings on long gap fill. --- td/telegram/UpdatesManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/UpdatesManager.cpp b/td/telegram/UpdatesManager.cpp index 25ef5c974..ab2123498 100644 --- a/td/telegram/UpdatesManager.cpp +++ b/td/telegram/UpdatesManager.cpp @@ -1960,7 +1960,6 @@ void UpdatesManager::add_pending_pts_update(tl_object_ptr if (old_pts < accumulated_pts_ - accumulated_pts_count_) { set_pts_gap_timeout(receive_time + MAX_UNFILLED_GAP_TIME - Time::now()); - last_pts_gap_time_ = Time::now(); return; } @@ -2159,6 +2158,7 @@ void UpdatesManager::set_pts_gap_timeout(double timeout) { pts_gap_timeout_.set_callback(std::move(fill_pts_gap)); pts_gap_timeout_.set_callback_data(static_cast(td_)); pts_gap_timeout_.set_timeout_in(timeout); + last_pts_gap_time_ = Time::now(); } }