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

This commit is contained in:
shadowislord 2014-06-08 22:01:39 -04:00
parent d3ba691600
commit a166e8cb17

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