2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix clearing callbacks for timeout-ed requests.

This commit is contained in:
John Preston
2018-07-18 22:21:09 +03:00
parent be043a4437
commit 091d1157da
2 changed files with 5 additions and 1 deletions

View File

@@ -2322,7 +2322,7 @@ void ConnectionPrivate::requestsAcked(const QVector<MTPlong> &ids, bool byRespon
while (ackedCount-- > MTPIdsBufferSize) {
auto i = wereAcked.begin();
clearedBecauseTooOld.push_back(RPCCallbackClear(
i.key(),
i.value(),
RPCError::TimeoutError));
wereAcked.erase(i);
}