2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

fixed crash in next/previous_chat(), MTP::dld/upl -> functions, download and upload sessions count reduced to 2

This commit is contained in:
John Preston
2016-02-29 14:34:44 +03:00
parent fcd713b8a6
commit 08072346fd
7 changed files with 34 additions and 30 deletions

View File

@@ -2119,9 +2119,9 @@ void MTProtoConnectionPrivate::onSentSome(uint64 size) {
DEBUG_LOG(("Checking connect for request with size %1 bytes, delay will be %2").arg(size).arg(remain));
}
}
if (dc >= MTP::upl[0] && dc < MTP::upl[MTPUploadSessionsCount - 1] + _mtp_internal::dcShift) {
if (dc >= MTP::uplStart && dc < MTP::uplEnd) {
remain *= MTPUploadSessionsCount;
} else if (dc >= MTP::dld[0] && dc < MTP::dld[MTPDownloadSessionsCount - 1] + _mtp_internal::dcShift) {
} else if (dc >= MTP::dldStart && dc < MTP::dldEnd) {
remain *= MTPDownloadSessionsCount;
}
_waitForReceivedTimer.start(remain);