Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit c975ca7205545ae547d255c02ec2959b3492dccd 1 parent aaacf08
@dmitrym0 dmitrym0 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  RACExtensions/NSNotificationCenter+RACSupport.m
View
2  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];
}
Please sign in to comment.
Something went wrong with that request. Please try again.