Skip to content

Commit 3809e90

Browse files
committed
fix: disconnecting all nodes in manager
1 parent 968a0e5 commit 3809e90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-native-audio-api/common/cpp/audioapi/core/utils/AudioNodeManager.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ void AudioNodeManager::settlePendingConnections() {
7272
assert(to != nullptr);
7373
from->disconnectNode(to);
7474
} else {
75-
for (auto &node : from->outputNodes_) {
75+
auto outputNodesCopy = from->outputNodes_;
76+
for (auto &node : outputNodesCopy) {
7677
from->disconnectNode(node);
7778
}
7879
}

0 commit comments

Comments
 (0)