mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-24 01:11:01 +00:00
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:
parent
bd025a3e12
commit
8ea1ca503e
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue