Fix incorrect return statement.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32948 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Niels Grewe 2011-04-29 11:52:30 +00:00
parent b77ed7bdb1
commit 43cf5d8fe5
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2011-04-29 Niels Grewe <niels.grewe@halbordnung.de>
* Source/DKNotificationCenter.m: Fix incorrect return statement.
2011-04-18 Niels Grewe <niels.grewe@halbordnung.de>
* Source/DKNotificationCenter.m: Move handling errors on watch

View File

@ -1365,9 +1365,10 @@ static DKEndpointManager *manager;
- (BOOL)_registerNotificationName: (NSString*)notificationName
asSignal: (DKSignal*)signal
{
BOOL retVal = NO;
if ((nil == notificationName) || (nil == signal))
{
return NO;
return retVal;
}
[lock lock];
NS_DURING
@ -1393,7 +1394,7 @@ static DKEndpointManager *manager;
}
NS_ENDHANDLER
[lock unlock];
return YES;
retVal = YES;
}
else
{
@ -1410,7 +1411,7 @@ static DKEndpointManager *manager;
}
NS_ENDHANDLER
[lock unlock];
return NO;
return retVal;
}
- (BOOL)registerNotificationName: (NSString*)notificationName