From 09a9e74eae4ae0bd9e910849827fd282a8ef6a81 Mon Sep 17 00:00:00 2001 From: Oana Popescu Date: Thu, 2 Jun 2016 18:23:49 +0300 Subject: [PATCH] Removed dealloc method and added comment regarding sending nil for delegateQueue --- SDWebImage/SDWebImageDownloaderOperation.m | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/SDWebImage/SDWebImageDownloaderOperation.m b/SDWebImage/SDWebImageDownloaderOperation.m index 7753187..2c36f92 100644 --- a/SDWebImage/SDWebImageDownloaderOperation.m +++ b/SDWebImage/SDWebImageDownloaderOperation.m @@ -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];