Skip to content

Commit

Permalink
Unsubscribe from the source notification center, not the default one.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrym0 committed Mar 10, 2013
1 parent aaacf08 commit c975ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RACExtensions/NSNotificationCenter+RACSupport.m
Expand Up @@ -20,7 +20,7 @@ - (RACSignal *)rac_addObserverForName:(NSString *)notificationName object:(id)ob
}];

return [RACDisposable disposableWithBlock:^{
[NSNotificationCenter.defaultCenter removeObserver:observer];
[self removeObserver:observer];
}];
}] setNameWithFormat:@"-rac_addObserverForName: %@ object: %@", notificationName, object];
}
Expand Down

0 comments on commit c975ca7

Please sign in to comment.