Automatically convert listen port to listen/speak if we try to use it as

a speaker.  To support threaded operation where a pair of ports are used
opposite way round in two threads.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21984 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2005-11-10 21:57:30 +00:00
parent bd025a3e12
commit 8ea1ca503e

View file

@ -910,8 +910,11 @@ retry:
}
this = PORT(self);
NSAssert(PORT(self)->wHandle != INVALID_HANDLE_VALUE,
@"Attempt to send through recv port");
if (PORT(self)->wHandle == INVALID_HANDLE_VALUE
&& [self _setupSendPort] == NO)
{
NSLog(@"Attempt to send through recv port");
}
c = [components count];
if (c == 0)