Bug 1885529 - Make sure HostRecordQueue::mPendingCount is accurate r=necko-reviewers...
commite435d557c86d3630cfa1678906a3df7f5106edd3
authorValentin Gosu <valentin.gosu@gmail.com>
Thu, 4 Apr 2024 14:24:20 +0000 (4 14:24 +0000)
committerValentin Gosu <valentin.gosu@gmail.com>
Thu, 4 Apr 2024 14:24:20 +0000 (4 14:24 +0000)
tree4c6060a656056f2441923448a7c407c404d2f852
parent65941da2ae6287b354bb2163359019a3b05bf245
Bug 1885529 - Make sure HostRecordQueue::mPendingCount is accurate r=necko-reviewers,jesup

When calling MoveToAnotherPendig the record gets removed from the
pending queue, and InsertRecord is called. As InsertRecord again
increments mPendingCount, we need to decrement it when removing from
a pending queue to ensure it's accurate.

Depends on D206498

Differential Revision: https://phabricator.services.mozilla.com/D206503
netwerk/dns/HostRecordQueue.cpp