* Avoid "AL not closed" error by joining with audio thread when exiting app

experimental
shadowislord 11 years ago
parent d3ba691600
commit a166e8cb17
  1. 4
      jme3-lwjgl/src/main/java/com/jme3/audio/lwjgl/LwjglAudioRenderer.java

@ -255,6 +255,10 @@ public class LwjglAudioRenderer implements AudioRenderer, Runnable {
// kill audio thread
if (audioThread.isAlive()) {
audioThread.interrupt();
try {
audioThread.join();
} catch (InterruptedException ex) {
}
}
}

Loading…
Cancel
Save