mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[ASNetworkImageNode] Carry recent progress image block changes over from multiplex image node
This commit is contained in:
@@ -452,9 +452,13 @@ typedef void(^ASMultiplexImageLoadCompletionBlock)(UIImage *image, id imageIdent
|
||||
|
||||
#pragma mark -
|
||||
|
||||
/**
|
||||
@note: This should be called without _downloadIdentifierLock held. We will lock
|
||||
super to read our interface state and it's best to avoid acquiring both locks.
|
||||
*/
|
||||
- (void)_updateProgressImageBlockOnDownloaderIfNeeded
|
||||
{
|
||||
// Read our interface state so that we don't lock super while holding our lock.
|
||||
// Read our interface state before locking so that we don't lock super while holding our lock.
|
||||
ASInterfaceState interfaceState = self.interfaceState;
|
||||
ASDN::MutexLocker l(_downloadIdentifierLock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user