mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
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:
parent
bb3e95339a
commit
874ab7af4f
2 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue