mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
d9d248cc84
commit
ae2d053bc4
2 changed files with 25 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue