Do not replace total_voter_count with 0 just in case.

GitOrigin-RevId: 632b4db2e0e94fb92c4846e5278f4457f9ccee46
This commit is contained in:
levlam 2019-04-26 22:56:52 +03:00
parent d8c92ebd3d
commit 02830797c9
1 changed files with 1 additions and 1 deletions

View File

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