mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
check for read in progress.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23178 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c5aca55532
commit
3ca79c6b64
2 changed files with 15 additions and 2 deletions
|
@ -708,7 +708,10 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
|||
if (sock != nil
|
||||
&& (connectionState == reading || connectionState == idle))
|
||||
{
|
||||
[sock readInBackgroundAndNotify];
|
||||
if ([sock readInProgress] == NO)
|
||||
{
|
||||
[sock readInBackgroundAndNotify];
|
||||
}
|
||||
}
|
||||
}
|
||||
RELEASE(self);
|
||||
|
@ -755,7 +758,10 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
|||
}
|
||||
else
|
||||
{
|
||||
[sock readInBackgroundAndNotify];
|
||||
if ([sock readInProgress] == NO)
|
||||
{
|
||||
[sock readInBackgroundAndNotify];
|
||||
}
|
||||
}
|
||||
RELEASE(p);
|
||||
RELEASE(self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue