Workaround GCC segmentation fault.

This commit is contained in:
John Preston 2017-12-18 19:52:58 +04:00
parent 92333e982c
commit b1f33890d6
1 changed files with 4 additions and 4 deletions

View File

@ -322,12 +322,12 @@ void Uploader::confirm(const FullMsgId &msgId) {
void Uploader::clear() {
uploaded.clear();
queue.clear();
for (const auto &[requestId, requestData] : requestsSent) {
MTP::cancel(requestId);
for (const auto &requestData : requestsSent) {
MTP::cancel(requestData.first);
}
requestsSent.clear();
for (const auto &[requestId, requestIndex] : docRequestsSent) {
MTP::cancel(requestId);
for (const auto &requestData : docRequestsSent) {
MTP::cancel(requestData.first);
}
docRequestsSent.clear();
dcMap.clear();