mirror of https://github.com/procxx/kepka.git
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() {
|
void ConcurrentSender::senderRequestCancelAll() {
|
||||||
auto list = std::vector<mtpRequestId>(_requests.size());
|
auto list = std::vector<mtpRequestId>(_requests.size());
|
||||||
for (const auto &[requestId, handlers] : base::take(_requests)) {
|
for (const auto &pair : base::take(_requests)) {
|
||||||
list.push_back(requestId);
|
list.push_back(pair.first);
|
||||||
}
|
}
|
||||||
with_instance([list = std::move(list)](not_null<Instance*> instance) {
|
with_instance([list = std::move(list)](not_null<Instance*> instance) {
|
||||||
for (const auto requestId : list) {
|
for (const auto requestId : list) {
|
||||||
|
|
Loading…
Reference in New Issue