Permalink
Browse files

Unsubscribe from the source notification center, not the default one.

  • Loading branch information...
dmitrym0 committed Mar 10, 2013
1 parent aaacf08 commit c975ca7205545ae547d255c02ec2959b3492dccd
Showing with 1 addition and 1 deletion.
  1. +1 −1 RACExtensions/NSNotificationCenter+RACSupport.m
@@ -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];
}

0 comments on commit c975ca7

Please sign in to comment.