Do not replace total_voter_count with 0 just in case.
GitOrigin-RevId: 632b4db2e0e94fb92c4846e5278f4457f9ccee46
This commit is contained in:
parent
d8c92ebd3d
commit
02830797c9
@ -462,7 +462,7 @@ td_api::object_ptr<td_api::poll> PollManager::get_poll_object(PollId poll_id, co
|
||||
}
|
||||
voter_count_sum += voter_count;
|
||||
}
|
||||
if (voter_count_sum < total_voter_count) {
|
||||
if (voter_count_sum < total_voter_count && voter_count_sum != 0) {
|
||||
LOG(ERROR) << "Fix total voter count from " << poll->total_voter_count << " + " << voter_count_diff << " to "
|
||||
<< voter_count_sum << " in " << poll_id;
|
||||
total_voter_count = voter_count_sum;
|
||||
|
Loading…
Reference in New Issue
Block a user