mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-01-18 19:31:49 +00:00
Fix concurrent modification error in detach method
This commit is contained in:
parent
191066f65c
commit
15f98d6b31
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user