Closed beta 1.3.7.1: Fix build with GCC.

This commit is contained in:
John Preston 2018-06-22 01:44:28 +01:00
parent 9b98ff52ea
commit 269bb94138

View File

@ -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) {