mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
tidied deregistration
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21101 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2e6a507ad5
commit
5b34db2984
1 changed files with 14 additions and 1 deletions
|
@ -1015,7 +1015,20 @@ static NSLock *cached_proxies_gate = nil;
|
|||
/*
|
||||
* Make sure we are not registered.
|
||||
*/
|
||||
[self registerName: nil];
|
||||
if ([_receivePort isKindOfClass: [NSMessagePort class]])
|
||||
{
|
||||
[self registerName: nil
|
||||
withNameServer: [NSMessagePortNameServer sharedInstance]];
|
||||
}
|
||||
else if ([_receivePort isKindOfClass: [NSSocketPort class]])
|
||||
{
|
||||
[self registerName: nil
|
||||
withNameServer: [NSSocketPortNameServer sharedInstance]];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self registerName: nil];
|
||||
}
|
||||
|
||||
/*
|
||||
* Withdraw from run loops.
|
||||
|
|
Loading…
Reference in a new issue