Skip to content

Commit 9923d1a

Browse files
committed
Merge pull request #24 from jparise/canceled-unlock
Release our lock when we encounter a canceled task
2 parents 9409a5e + 2b27e1f commit 9923d1a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Pod/Classes/PINRemoteImageManager.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ - (NSUUID *)downloadImageWithURL:(NSURL *)url
393393
[strongSelf lock];
394394
//check canceled tasks first
395395
if ([strongSelf.canceledTasks containsObject:UUID]) {
396+
[strongSelf unlock];
396397
return;
397398
}
398399
[strongSelf.canceledTasks removeAllObjects];

0 commit comments

Comments
 (0)