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:
Jonas Salling 2014-04-22 14:52:20 +02:00
parent 88e6ca3e49
commit bdef7651f0
1 changed files with 1 additions and 0 deletions

View File

@ -129,6 +129,7 @@
}
- (void)cancelInternalAndStop {
if (self.isFinished) return;
[self cancelInternal];
CFRunLoopStop(CFRunLoopGetCurrent());
}