mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
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:
parent
0a715d987a
commit
52a473a8cc
3 changed files with 25 additions and 12 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue