Thrift-1662:"removeObject:" should be "removeObserver:" in [-TSocketServer dealloc]?
authorJake Farrell <jfarrell@apache.org>
Fri, 27 Jul 2012 15:48:37 +0000 (15:48 +0000)
committerJake Farrell <jfarrell@apache.org>
Fri, 27 Jul 2012 15:48:37 +0000 (15:48 +0000)
Client: cocoa
Patch: Ken Morishita

Fixed issue there TSockerServer was using wrong notification center method. Using
- (void)removeObserver:(id)notificationObserver

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1366424 13f79535-47bb-0310-9956-ffa450edef68

lib/cocoa/src/server/TSocketServer.m

index 057f41f..4941445 100644 (file)
@@ -96,7 +96,7 @@ NSString * const kTSockerServer_TransportKey = @"TSockerServer_Transport";
 
 
 - (void) dealloc {
-  [[NSNotificationCenter defaultCenter] removeObject: self];
+  [[NSNotificationCenter defaultCenter] removeObserver:self];
   [mInputProtocolFactory release_stub];
   [mOutputProtocolFactory release_stub];
   [mProcessorFactory release_stub];