From 252b77840790f55ab77cad7b9bc0beddf490b73f Mon Sep 17 00:00:00 2001 From: CaS Date: Thu, 10 Nov 2005 21:57:30 +0000 Subject: [PATCH] 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 --- Source/win32/NSMessagePortWin32.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/win32/NSMessagePortWin32.m b/Source/win32/NSMessagePortWin32.m index 9298a131c..1e944ec35 100644 --- a/Source/win32/NSMessagePortWin32.m +++ b/Source/win32/NSMessagePortWin32.m @@ -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)