Fix concurrent modification error in detach method

This commit is contained in:
Brendan Robert 2024-01-23 21:50:51 -06:00
parent 191066f65c
commit 15f98d6b31

View File

@ -283,7 +283,8 @@ public class SoundMixer extends Device {
MUTE = true;
PLAYBACK_ENABLED = false;
for (SoundBuffer buffer : buffers) {
while (!buffers.isEmpty()) {
SoundBuffer buffer = buffers.get(0);
try {
buffer.shutdown();
} catch (InterruptedException | ExecutionException e) {