Bug 1348081 - if we call ProcessPendingQForEntry with considerAll=false we should return if we already found a transaction in the urgent queue. r=mayhemer

This commit is contained in:
Dragana Damjanovic 2017-03-17 10:12:57 +01:00
parent 1c99ae8f32
commit 4fca90dedd

View File

@ -990,6 +990,9 @@ nsHttpConnectionMgr::ProcessPendingQForEntry(nsConnectionEntry *ent, bool consid
bool dispatchedSuccessfully = false;
DispatchPendingQ(ent->mUrgentStartQ, ent, dispatchedSuccessfully, considerAll);
if (dispatchedSuccessfully && !considerAll) {
return dispatchedSuccessfully;
}
DispatchPendingQ(ent->mPendingQ, ent, dispatchedSuccessfully, considerAll);
return dispatchedSuccessfully;