Minor fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17215 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-07-15 04:47:06 +00:00
parent bb3e95339a
commit 874ab7af4f
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2003-07-15 Alexander Malmberg <alexander@malmberg.org>
* Source/NSConnection.m: When creating new connection with registered
name on host, ensure that send and receive ports are of same class.
2003-07-15 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSDistributedNotificationCenter.m: Use loopback network

View file

@ -494,6 +494,17 @@ static BOOL multi_threaded = NO;
*/
recvPort = [NSPort port];
}
else if (![recvPort isMemberOfClass: [sendPort class]])
{
/*
We can only use the port of the default connection for
connections using the same port class. For other port classes,
we must use a receiving port of the same class as the sending
port, so we allocate one here.
*/
recvPort = [[sendPort class] port];
}
con = existingConnection(recvPort, sendPort);
if (con == nil)
{