Fix #18
This commit is contained in:
parent
a95c23206a
commit
92f664614b
@ -1177,8 +1177,12 @@ void PollManager::on_update_poll_timeout(PollId poll_id) {
|
|||||||
if (G()->close_flag()) {
|
if (G()->close_flag()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto poll = get_poll(poll_id);
|
auto poll = get_poll(poll_id);
|
||||||
if (!(poll != nullptr)) return;
|
if (poll == nullptr) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (poll->is_closed && poll->is_updated_after_close) {
|
if (poll->is_closed && poll->is_updated_after_close) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1192,7 +1196,13 @@ void PollManager::on_update_poll_timeout(PollId poll_id) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto full_message_id = *it->second.begin();
|
auto full_message_id_set = std::move(it->second);
|
||||||
|
if (full_message_id_set.empty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto full_message_id = *full_message_id_set.begin();
|
||||||
|
|
||||||
LOG(INFO) << "Fetching results of " << poll_id << " from " << full_message_id;
|
LOG(INFO) << "Fetching results of " << poll_id << " from " << full_message_id;
|
||||||
auto query_promise = PromiseCreator::lambda([poll_id, generation = current_generation_, actor_id = actor_id(this)](
|
auto query_promise = PromiseCreator::lambda([poll_id, generation = current_generation_, actor_id = actor_id(this)](
|
||||||
Result<tl_object_ptr<telegram_api::Updates>> &&result) {
|
Result<tl_object_ptr<telegram_api::Updates>> &&result) {
|
||||||
|
Loading…
Reference in New Issue
Block a user