Skip to content

Commit

Permalink
Bug fix:Collection <__NSArrayM: > was mutated while being enumerated
Browse files Browse the repository at this point in the history
  • Loading branch information
wdragen committed Dec 14, 2014
1 parent 6698910 commit dad2a92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SDWebImage/SDImageCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ - (NSData *)diskImageDataBySearchingAllPathsForKey:(NSString *)key {
return data;
}

for (NSString *path in self.customPaths) {
NSArray *customPaths = [self.customPaths copy];
for (NSString *path in customPaths) {
NSString *filePath = [self cachePathForKey:key inPath:path];
NSData *imageData = [NSData dataWithContentsOfFile:filePath];
if (imageData) {
Expand Down

0 comments on commit dad2a92

Please sign in to comment.