mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 667385 nshttppipeline::isdone does not consider done sub transactions r=honzab
This commit is contained in:
parent
f32f9929a4
commit
618417d206
@ -412,7 +412,17 @@ nsHttpPipeline::OnTransportStatus(nsITransport* transport,
|
||||
bool
|
||||
nsHttpPipeline::IsDone()
|
||||
{
|
||||
return (mRequestQ.Length() == 0) && (mResponseQ.Length() == 0);
|
||||
PRBool done = PR_TRUE;
|
||||
|
||||
PRUint32 i, count = mRequestQ.Length();
|
||||
for (i = 0; done && (i < count); i++)
|
||||
done = Request(i)->IsDone();
|
||||
|
||||
count = mResponseQ.Length();
|
||||
for (i = 0; done && (i < count); i++)
|
||||
done = Response(i)->IsDone();
|
||||
|
||||
return done;
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
Loading…
Reference in New Issue
Block a user