зеркало из https://github.com/mozilla/pjs.git
bug 667385 nshttppipeline::isdone does not consider done sub transactions r=honzab
This commit is contained in:
Родитель
892bf73a36
Коммит
c1c70f9190
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче