Skip to content

Commit

Permalink
Improve warnings on long gap fill.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Aug 15, 2021
1 parent 9a5872f commit 8ac0b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion td/telegram/UpdatesManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1960,7 +1960,6 @@ void UpdatesManager::add_pending_pts_update(tl_object_ptr<telegram_api::Update>

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;
}

Expand Down Expand Up @@ -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<void *>(td_));
pts_gap_timeout_.set_timeout_in(timeout);
last_pts_gap_time_ = Time::now();
}
}

Expand Down

0 comments on commit 8ac0b02

Please sign in to comment.