Skip to content

Commit

Permalink
Merge pull request AFNetworking#3236 from AFNetworking/bug/notificati…
Browse files Browse the repository at this point in the history
…on_removed_twice

Fixed issue where `AFNSURLSessionTaskDidResumeNotification` was removed twice
  • Loading branch information
kcharwood committed Dec 18, 2015
2 parents 7b22a26 + 2e5be90 commit 21bee52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AFNetworking/AFURLSessionManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ - (void)addNotificationObserverForTask:(NSURLSessionTask *)task {
}

- (void)removeNotificationObserverForTask:(NSURLSessionTask *)task {
[[NSNotificationCenter defaultCenter] removeObserver:self name:AFNSURLSessionTaskDidResumeNotification object:task];
[[NSNotificationCenter defaultCenter] removeObserver:self name:AFNSURLSessionTaskDidSuspendNotification object:task];
[[NSNotificationCenter defaultCenter] removeObserver:self name:AFNSURLSessionTaskDidResumeNotification object:task];
}

Expand Down

0 comments on commit 21bee52

Please sign in to comment.