bug 667385 nshttppipeline::isdone does not consider done sub transactions r=honzab

This commit is contained in:
Patrick McManus 2011-11-15 10:12:43 -05:00
parent f32f9929a4
commit 618417d206

View File

@ -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