Removed dealloc method and added comment regarding sending nil for delegateQueue
This commit is contained in:
parent
5580c78282
commit
09a9e74eae
|
|
@ -67,10 +67,6 @@ NSString *const SDWebImageDownloadFinishNotification = @"SDWebImageDownloadFinis
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)dealloc {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)start {
|
- (void)start {
|
||||||
@synchronized (self) {
|
@synchronized (self) {
|
||||||
if (self.isCancelled) {
|
if (self.isCancelled) {
|
||||||
|
|
@ -99,6 +95,12 @@ NSString *const SDWebImageDownloadFinishNotification = @"SDWebImageDownloadFinis
|
||||||
#endif
|
#endif
|
||||||
NSURLSessionConfiguration *sessionConfig = [NSURLSessionConfiguration defaultSessionConfiguration];
|
NSURLSessionConfiguration *sessionConfig = [NSURLSessionConfiguration defaultSessionConfiguration];
|
||||||
sessionConfig.timeoutIntervalForRequest = 15;
|
sessionConfig.timeoutIntervalForRequest = 15;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create the session for this task
|
||||||
|
* We send nil as delegate queue so that the session creates a serial operation queue for performing all delegate
|
||||||
|
* method calls and completion handler calls.
|
||||||
|
*/
|
||||||
self.session = [NSURLSession sessionWithConfiguration:sessionConfig
|
self.session = [NSURLSession sessionWithConfiguration:sessionConfig
|
||||||
delegate:self
|
delegate:self
|
||||||
delegateQueue:nil];
|
delegateQueue:nil];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue