Skip to content

Commit

Permalink
Fixed bug where the notification was removed twice
Browse files Browse the repository at this point in the history
  • Loading branch information
kcharwood committed Dec 18, 2015
1 parent 7b22a26 commit 2e5be90
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 2e5be90

Please sign in to comment.