Skip to content

Commit

Permalink
Switch back from getDifference to updates processing as fast as possi…
Browse files Browse the repository at this point in the history
…ble.
  • Loading branch information
levlam committed Aug 15, 2021
1 parent d7dd6ff commit 1f486a6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions td/telegram/UpdatesManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1368,10 +1368,8 @@ void UpdatesManager::on_get_difference(tl_object_ptr<telegram_api::updates_Diffe

auto state = std::move(difference->intermediate_state_);
if (get_pts() != std::numeric_limits<int32>::max() && state->date_ == get_date() &&
(state->pts_ == get_pts() ||
(min_postponed_update_pts_ != 0 && state->pts_ - 500 >= min_postponed_update_pts_)) &&
(state->qts_ == get_qts() ||
(min_postponed_update_qts_ != 0 && state->qts_ - 500 >= min_postponed_update_qts_))) {
(state->pts_ == get_pts() || (min_postponed_update_pts_ != 0 && state->pts_ >= min_postponed_update_pts_)) &&
(state->qts_ == get_qts() || (min_postponed_update_qts_ != 0 && state->qts_ >= min_postponed_update_qts_))) {
on_get_updates_state(std::move(state), "get difference final slice");
VLOG(get_difference) << "Trying to switch back from getDifference to update processing";
break;
Expand Down

0 comments on commit 1f486a6

Please sign in to comment.