mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-10-11 18:23:48 +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;
|
MUTE = true;
|
||||||
PLAYBACK_ENABLED = false;
|
PLAYBACK_ENABLED = false;
|
||||||
|
|
||||||
for (SoundBuffer buffer : buffers) {
|
while (!buffers.isEmpty()) {
|
||||||
|
SoundBuffer buffer = buffers.get(0);
|
||||||
try {
|
try {
|
||||||
buffer.shutdown();
|
buffer.shutdown();
|
||||||
} catch (InterruptedException | ExecutionException e) {
|
} catch (InterruptedException | ExecutionException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user