mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-06 17:32:52 +08:00
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:
@@ -69,8 +69,8 @@
|
||||
|
||||
if (successful) {
|
||||
_isLoaded = YES;
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:RKResponseReceivedNotification
|
||||
object:_response
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:RKRequestReceivedResponseNotification
|
||||
object:self
|
||||
userInfo:nil];
|
||||
} else {
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:RKRequestFailedWithErrorNotification
|
||||
|
||||
Reference in New Issue
Block a user