[ASNetworkImageNode] Carry recent progress image block changes over from multiplex image node

This commit is contained in:
Adlai Holler
2016-04-22 12:34:13 -05:00
parent f5adc7999b
commit bc8a2b19ef
2 changed files with 15 additions and 3 deletions

View File

@@ -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);