Update SDWebImageDownloaderOperation.m
Fixing race condition that causes cancellation of one download operation to stop a run loop that is now used for another download operation. Race is introduced through -performSelector:onThread:withObject:waitUntilDone:
This commit is contained in:
parent
88e6ca3e49
commit
bdef7651f0
|
|
@ -129,6 +129,7 @@
|
|||
}
|
||||
|
||||
- (void)cancelInternalAndStop {
|
||||
if (self.isFinished) return;
|
||||
[self cancelInternal];
|
||||
CFRunLoopStop(CFRunLoopGetCurrent());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue