From 2e5be900e0a3c2e58503594379f2f2aed3f28c3f Mon Sep 17 00:00:00 2001 From: Kevin Harwood Date: Fri, 18 Dec 2015 07:55:46 -0600 Subject: [PATCH] Fixed bug where the notification was removed twice --- AFNetworking/AFURLSessionManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AFNetworking/AFURLSessionManager.m b/AFNetworking/AFURLSessionManager.m index 5dc391c02e..de447aea99 100644 --- a/AFNetworking/AFURLSessionManager.m +++ b/AFNetworking/AFURLSessionManager.m @@ -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]; }