Minor debug improvement.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14497 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-09-20 16:58:32 +00:00
parent d9d248cc84
commit ae2d053bc4
2 changed files with 25 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2002-09-20 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSTcpHandle.m: ([-connectToPort:beforeDate:]) Added more
informative logging for problem condition reported by Nicila ...
perhaps it will help tracking down cause.
2002-09-19 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSFormat.m: Where a %p format prints a null pointer,

View file

@ -462,10 +462,27 @@ static Class runLoopClass;
self, GSCurrentThread(), when);
if (state != GS_H_UNCON)
{
NSLog(@"attempting connect on connected handle");
BOOL result;
if (state == GS_H_CONNECTED) /* Already connected. */
{
NSLog(@"attempting connect on connected handle");
result = YES;
}
else if (state == GS_H_ACCEPT) /* Impossible. */
{
NSLog(@"attempting connect with accepting handle");
result = NO;
}
else /* Already connecting. */
{
NSLog(@"attempting connect while connecting");
result = NO;
}
DO_UNLOCK(myLock);
return YES; /* Already connected. */
return result;
}
if (recvPort == nil || aPort == nil)
{
NSLog(@"attempting connect with port(s) unset");