mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-12 18:11:13 +00:00
Closed beta 1.3.7.1: Fix build with GCC.
This commit is contained in:
parent
9b98ff52ea
commit
269bb94138
@ -206,8 +206,8 @@ void ConcurrentSender::senderRequestCancel(mtpRequestId requestId) {
|
||||
|
||||
void ConcurrentSender::senderRequestCancelAll() {
|
||||
auto list = std::vector<mtpRequestId>(_requests.size());
|
||||
for (const auto &[requestId, handlers] : base::take(_requests)) {
|
||||
list.push_back(requestId);
|
||||
for (const auto &pair : base::take(_requests)) {
|
||||
list.push_back(pair.first);
|
||||
}
|
||||
with_instance([list = std::move(list)](not_null<Instance*> instance) {
|
||||
for (const auto requestId : list) {
|
||||
|
Loading…
Reference in New Issue
Block a user