Fix the unbalanced lock which cause crash
This commit is contained in:
parent
3a6e01ab20
commit
6eb74a177f
|
@ -824,6 +824,7 @@ static id<SDImageLoader> _defaultImageLoader;
|
|||
- (void)cancel {
|
||||
SD_LOCK(_cancelledLock);
|
||||
if (_cancelled) {
|
||||
SD_UNLOCK(_cancelledLock);
|
||||
return;
|
||||
}
|
||||
_cancelled = YES;
|
||||
|
|
Loading…
Reference in New Issue