We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3809e90 commit 4a2f9c6Copy full SHA for 4a2f9c6
packages/react-native-audio-api/common/cpp/audioapi/core/utils/AudioNodeManager.cpp
@@ -72,9 +72,10 @@ void AudioNodeManager::settlePendingConnections() {
72
assert(to != nullptr);
73
from->disconnectNode(to);
74
} else {
75
- auto outputNodesCopy = from->outputNodes_;
76
- for (auto &node : outputNodesCopy) {
77
- from->disconnectNode(node);
+ for (auto it = from->outputNodes_.begin(); it != from->outputNodes_.end();) {
+ auto next = std::next(it);
+ from->disconnectNode(*it);
78
+ it = next;
79
}
80
81
0 commit comments