Fix dropping inline query results.
GitOrigin-RevId: e886dac54666ce0fc5a506d7db1c15ee62533034
This commit is contained in:
parent
3347a5e2da
commit
7466a29da7
|
@ -1076,6 +1076,7 @@ tl_object_ptr<td_api::inlineQueryResults> InlineQueriesManager::decrease_pending
|
||||||
auto left_time = it->second.cache_expire_time - Time::now();
|
auto left_time = it->second.cache_expire_time - Time::now();
|
||||||
if (left_time < 0) {
|
if (left_time < 0) {
|
||||||
LOG(INFO) << "Drop cache for inline query " << query_hash;
|
LOG(INFO) << "Drop cache for inline query " << query_hash;
|
||||||
|
drop_inline_query_result_timeout_.cancel_timeout(static_cast<int64>(query_hash));
|
||||||
auto result = std::move(it->second.results);
|
auto result = std::move(it->second.results);
|
||||||
inline_query_results_.erase(it);
|
inline_query_results_.erase(it);
|
||||||
return result;
|
return result;
|
||||||
|
|
Reference in New Issue
Block a user