Rework notifications to allow request queue to observe only the requests it dispatches instead of all of them. Fixes incorrectly decrementing loading count.

This commit is contained in:
Blake Watters
2011-06-29 15:36:10 -04:00
parent 6faa525344
commit 853704b2fd
6 changed files with 18 additions and 19 deletions

View File

@@ -439,7 +439,9 @@
// NOTE: This notification must be posted last as the request queue releases the request when it
// receives the notification
[[NSNotificationCenter defaultCenter] postNotificationName:RKResponseReceivedNotification object:response userInfo:nil];
[[NSNotificationCenter defaultCenter] postNotificationName:RKRequestReceivedResponseNotification
object:self
userInfo:nil];
}
- (BOOL)isGET {