Authored by Olivier Poitrey

Merge pull request #698 from salling/master

Fixing race in SDWebImageDownloaderOperation leading to erroneous timeout.
@@ -129,6 +129,7 @@ @@ -129,6 +129,7 @@
129 } 129 }
130 130
131 - (void)cancelInternalAndStop { 131 - (void)cancelInternalAndStop {
  132 + if (self.isFinished) return;
132 [self cancelInternal]; 133 [self cancelInternal];
133 CFRunLoopStop(CFRunLoopGetCurrent()); 134 CFRunLoopStop(CFRunLoopGetCurrent());
134 } 135 }