Merge pull request #205 from triposo/send-downloader-with-notification
Send downloader as part of notification.
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -89,7 +89,7 @@ NSString *const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNot | @@ -89,7 +89,7 @@ NSString *const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNot | ||
89 | 89 | ||
90 | if (connection) | 90 | if (connection) |
91 | { | 91 | { |
92 | - [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStartNotification object:nil]; | 92 | + [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStartNotification object:self]; |
93 | } | 93 | } |
94 | else | 94 | else |
95 | { | 95 | { |
@@ -106,7 +106,7 @@ NSString *const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNot | @@ -106,7 +106,7 @@ NSString *const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNot | ||
106 | { | 106 | { |
107 | [connection cancel]; | 107 | [connection cancel]; |
108 | self.connection = nil; | 108 | self.connection = nil; |
109 | - [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStopNotification object:nil]; | 109 | + [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStopNotification object:self]; |
110 | } | 110 | } |
111 | } | 111 | } |
112 | 112 |
-
Please register or login to post a comment