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:
CaS 2003-07-15 04:47:06 +00:00
parent 10f0204dd5
commit 1561800b3b
2 changed files with 16 additions and 0 deletions

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)
{