mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Bug 1507180 - Make copy of list before iterating over it r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D55286 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
3f2680cc2c
commit
e1fcfedadb
3
dom/cache/StreamControl.cpp
vendored
3
dom/cache/StreamControl.cpp
vendored
@ -57,7 +57,8 @@ void StreamControl::CloseReadStreams(const nsID& aId) {
|
||||
void StreamControl::CloseAllReadStreams() {
|
||||
AssertOwningThread();
|
||||
|
||||
ReadStreamList::ForwardIterator iter(mReadStreamList);
|
||||
auto readStreamList = mReadStreamList;
|
||||
ReadStreamList::ForwardIterator iter(readStreamList);
|
||||
while (iter.HasMore()) {
|
||||
iter.GetNext()->CloseStream();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user