bugfix: incorrect erase element

This commit is contained in:
Кипорский Алексей 2020-03-20 10:02:36 +05:00 committed by John Preston
parent d2291f5b17
commit ea854e5be3

View file

@ -2007,9 +2007,10 @@ void SessionPrivate::requestsAcked(const QVector<MTPlong> &ids, bool byResponse)
} else { } else {
DEBUG_LOG(("Message Info: acked msgId %1 that was prepared to resend, requestId %2").arg(msgId).arg(requestId)); DEBUG_LOG(("Message Info: acked msgId %1 that was prepared to resend, requestId %2").arg(msgId).arg(requestId));
} }
toSend.erase(j);
_ackedIds.emplace(msgId, j->second->requestId); _ackedIds.emplace(msgId, j->second->requestId);
toSend.erase(j);
continue; continue;
} }
DEBUG_LOG(("Message Info: msgId %1 was not found in recent resent either").arg(msgId)); DEBUG_LOG(("Message Info: msgId %1 was not found in recent resent either").arg(msgId));