Skip to content

Commit

Permalink
Merge pull request #728 from kejinlu/master
Browse files Browse the repository at this point in the history
The ioQueue is "SERIAL" ,so "dispatch_barrier_async" is not needed.
  • Loading branch information
Olivier Poitrey committed May 24, 2014
2 parents 7764e47 + dab65ae commit fca4112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SDWebImage/SDImageCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ - (void)cleanDisk {
}

- (void)cleanDiskWithCompletionBlock:(void (^)())completionBlock {
dispatch_barrier_async(self.ioQueue, ^{
dispatch_async(self.ioQueue, ^{
NSURL *diskCacheURL = [NSURL fileURLWithPath:self.diskCachePath isDirectory:YES];
NSArray *resourceKeys = @[NSURLIsDirectoryKey, NSURLContentModificationDateKey, NSURLTotalFileAllocatedSizeKey];

Expand Down

0 comments on commit fca4112

Please sign in to comment.