mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Make copy of list before iterating over it.
This commit is contained in:
parent
d12d260c6a
commit
a0c6c89208
1 changed files with 2 additions and 1 deletions
3
dom/cache/StreamControl.cpp
vendored
3
dom/cache/StreamControl.cpp
vendored
|
|
@ -68,7 +68,8 @@ StreamControl::CloseAllReadStreams()
|
|||
{
|
||||
AssertOwningThread();
|
||||
|
||||
ReadStreamList::ForwardIterator iter(mReadStreamList);
|
||||
auto readStreamList = mReadStreamList;
|
||||
ReadStreamList::ForwardIterator iter(readStreamList);
|
||||
while (iter.HasMore()) {
|
||||
iter.GetNext()->CloseStream();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue