Skip to content

Commit

Permalink
Fixed #2, crash in ARTiledImageView:downloadAndRedrawTilesWithURLs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed May 20, 2014
1 parent ff313fe commit cd3cd38
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Next

* [#2](https://github.com/dblock/ARTiledImageView/issues/2): Fixed crash in `[ARTiledImageView downloadAndRedrawTilesWithURLs:]`, (ARTiledImageView.m:154) - [@dblock](https://github.com/dblock).

## 1.1.0 (5/1/2014)

* Added `ARTiledImageScrollView.backgroundImage` - [@dblock](https://github.com/dblock).
Expand Down
7 changes: 5 additions & 2 deletions Classes/ARTiledImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,11 @@ - (void)downloadAndRedrawTilesWithURLs:(NSDictionary *)urls

for (NSString *tileCacheKey in urls.keyEnumerator) {
NSURL *tileURL = [urls objectForKey:tileCacheKey];
if ([self.downloadOperations objectForKey:tileCacheKey]) {
continue;

@synchronized (self.downloadOperations) {
if ([self.downloadOperations objectForKey:tileCacheKey]) {
continue;
}
}

id <SDWebImageOperation> operation = nil;
Expand Down

0 comments on commit cd3cd38

Please sign in to comment.