Try to remove the unused NSNotification object filter, do filter by ourself

This commit is contained in:
DreamPiggy 2023-10-10 14:46:23 +08:00
parent 9078f316f7
commit cae43d7c88
1 changed files with 2 additions and 2 deletions

View File

@ -556,8 +556,8 @@ didReceiveResponse:(NSURLResponse *)response
self = [super init];
if (self) {
_downloadOperation = downloadOperation;
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(downloadDidReceiveResponse:) name:SDWebImageDownloadReceiveResponseNotification object:downloadOperation];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(downloadDidStop:) name:SDWebImageDownloadStopNotification object:downloadOperation];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(downloadDidReceiveResponse:) name:SDWebImageDownloadReceiveResponseNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(downloadDidStop:) name:SDWebImageDownloadStopNotification object:nil];
}
return self;
}