mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-20 13:19:16 +00:00
Trying to set the progress block with a nil identifire doesn't make sense. (#3117)
This commit is contained in:
parent
67baa44fb5
commit
40d3a1de7a
@ -439,7 +439,9 @@ static const CGSize kMinReleaseImageOnBackgroundSize = {20.0, 20.0};
|
||||
if (clearAndReattempt) {
|
||||
// In this case another thread changed the _downloadIdentifierForProgressBlock before we finished registering
|
||||
// the new progress block for newDownloadIDForProgressBlock ID. Let's clear it now and reattempt to register
|
||||
[_downloader setProgressImageBlock:nil callbackQueue:dispatch_get_main_queue() withDownloadIdentifier:newDownloadIDForProgressBlock];
|
||||
if (newDownloadIDForProgressBlock) {
|
||||
[_downloader setProgressImageBlock:nil callbackQueue:dispatch_get_main_queue() withDownloadIdentifier:newDownloadIDForProgressBlock];
|
||||
}
|
||||
[self _updateProgressImageBlockOnDownloaderIfNeeded];
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user