check argument to setRootNode: and avoid unnecessary read on http connection.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24125 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2006-11-18 08:03:05 +00:00
parent 0a715d987a
commit 52a473a8cc
3 changed files with 25 additions and 12 deletions

View file

@ -734,8 +734,7 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
[self backgroundLoadDidFailWithReason: @"Response parse failed"];
}
if (sock != nil
&& (connectionState == reading || connectionState == idle))
if (sock != nil && connectionState == reading)
{
if ([sock readInProgress] == NO)
{