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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user