You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that in Sequence's destroy() method you're iterating through a collection with forEach at the same time as you're modifying it. Not sure how this has worked before. Maybe some behavior of how iterating through the values of a map has changed recently.
deleteTrack now seems to be modifying the collection we are iterating through it.
A simple solution is to copy the list of track to a list before iterating through it, or just using _tracks.values.toList().forEach instead.
The text was updated successfully, but these errors were encountered:
Hi!
I noticed that in Sequence's destroy() method you're iterating through a collection with forEach at the same time as you're modifying it. Not sure how this has worked before. Maybe some behavior of how iterating through the values of a map has changed recently.
deleteTrack now seems to be modifying the collection we are iterating through it.
A simple solution is to copy the list of track to a list before iterating through it, or just using
_tracks.values.toList().forEach
instead.The text was updated successfully, but these errors were encountered: