Fix the unbalanced lock which cause crash

This commit is contained in:
DreamPiggy 2022-09-19 12:05:41 +08:00
parent 3a6e01ab20
commit 6eb74a177f
1 changed files with 1 additions and 0 deletions

View File

@ -824,6 +824,7 @@ static id<SDImageLoader> _defaultImageLoader;
- (void)cancel {
SD_LOCK(_cancelledLock);
if (_cancelled) {
SD_UNLOCK(_cancelledLock);
return;
}
_cancelled = YES;