Removed dealloc method and added comment regarding sending nil for delegateQueue

This commit is contained in:
Oana Popescu 2016-06-02 18:23:49 +03:00
parent 5580c78282
commit 09a9e74eae
1 changed files with 6 additions and 4 deletions

View File

@ -67,10 +67,6 @@ NSString *const SDWebImageDownloadFinishNotification = @"SDWebImageDownloadFinis
return self;
}
- (void)dealloc {
}
- (void)start {
@synchronized (self) {
if (self.isCancelled) {
@ -99,6 +95,12 @@ NSString *const SDWebImageDownloadFinishNotification = @"SDWebImageDownloadFinis
#endif
NSURLSessionConfiguration *sessionConfig = [NSURLSessionConfiguration defaultSessionConfiguration];
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
delegate:self
delegateQueue:nil];