* Avoid "AL not closed" error by joining with audio thread when exiting app
This commit is contained in:
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) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user