Skip to content

Commit

Permalink
More cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Adlai-Holler committed Mar 9, 2019
1 parent a4ba39f commit 4aec650
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/ASMultiplexImageNode.mm
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ - (void)_updatePriorityOnDownloaderIfNeededWithDefaultPriority:(ASImageDownloade
if (_downloaderFlags.downloaderImplementsSetPriority) {
// 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);
MutexLocker l(_downloadIdentifierLock);

if (_downloadIdentifier != nil) {
ASImageDownloaderPriority priority = defaultPriority;
Expand Down Expand Up @@ -850,7 +850,7 @@ - (void)_downloadImageWithIdentifier:(id)imageIdentifier URL:(NSURL *)imageURL c
if (!strongSelf)
return;

ASDN::MutexLocker l(strongSelf->_downloadIdentifierLock);
MutexLocker l(strongSelf->_downloadIdentifierLock);
//Getting a result back for a different download identifier, download must not have been successfully canceled
if (ASObjectIsEqual(strongSelf->_downloadIdentifier, downloadIdentifier) == NO && downloadIdentifier != nil) {
return;
Expand Down

0 comments on commit 4aec650

Please sign in to comment.