diff --git a/Telegram/SourceFiles/storage/download_manager_mtproto.cpp b/Telegram/SourceFiles/storage/download_manager_mtproto.cpp index 7fa95c6cb..def8e13d3 100644 --- a/Telegram/SourceFiles/storage/download_manager_mtproto.cpp +++ b/Telegram/SourceFiles/storage/download_manager_mtproto.cpp @@ -495,10 +495,13 @@ void DownloadMtprotoTask::removeSession(int sessionIndex) { } } for (const auto &[requestId, offset] : redirect) { + const auto needMakeRequest = (requestId != _cdnHashesRequestId); cancelRequest(requestId); - const auto newIndex = _owner->chooseSessionIndex(dcId()); - Assert(newIndex < sessionIndex); - makeRequest({ offset, newIndex }); + if (needMakeRequest) { + const auto newIndex = _owner->chooseSessionIndex(dcId()); + Assert(newIndex < sessionIndex); + makeRequest({ offset, newIndex }); + } } }