Skip to content

Commit 639aa64

Browse files
author
Olivier Poitrey
committed
Merge pull request SDWebImage#588 from wishabi/master
Assign thread for downloada cancellation + minor doc fix
2 parents 7ace068 + 00918d0 commit 639aa64

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

SDWebImage/SDImageCache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ typedef enum SDImageCacheType SDImageCacheType;
9191
*
9292
* @param image The image to store
9393
* @param recalculate BOOL indicates if imageData can be used or a new data should be constructed from the UIImage
94-
* @param data The image data as returned by the server, this representation will be used for disk storage
94+
* @param imageData The image data as returned by the server, this representation will be used for disk storage
9595
* instead of converting the given image object into a storable/compressed image format in order
9696
* to save quality and CPU
9797
* @param key The unique image cache key, usually it's image absolute URL

SDWebImage/SDWebImageDownloaderOperation.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ - (void)start
8585

8686
self.executing = YES;
8787
self.connection = [NSURLConnection.alloc initWithRequest:self.request delegate:self startImmediately:NO];
88+
self.thread = [NSThread currentThread];
8889
}
8990

9091
[self.connection start];

0 commit comments

Comments
 (0)