diff --git a/SDWebImage/SDImageCache.m b/SDWebImage/SDImageCache.m index b01dd867..6c933242 100644 --- a/SDWebImage/SDImageCache.m +++ b/SDWebImage/SDImageCache.m @@ -109,11 +109,11 @@ FOUNDATION_STATIC_INLINE NSUInteger SDCacheCostForImage(UIImage *image) { NSString *path = [self makeDiskCachePath:ns]; _diskCachePath = path; } - + dispatch_sync(_ioQueue, ^{ _fileManager = fileManager ? fileManager : [NSFileManager new]; }); - + #if SD_UIKIT // Subscribe to app events [[NSNotificationCenter defaultCenter] addObserver:self