Be sure to mark all the sound playing threads as daemon.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3305 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -292,11 +292,13 @@ public class SoundManager
|
|||||||
|
|
||||||
// and if we need a new thread, add it
|
// and if we need a new thread, add it
|
||||||
if (add) {
|
if (add) {
|
||||||
new Thread("narya SoundManager line spooler") {
|
Thread spooler = new Thread("narya SoundManager line spooler") {
|
||||||
public void run () {
|
public void run () {
|
||||||
spoolerRun();
|
spoolerRun();
|
||||||
}
|
}
|
||||||
}.start();
|
};
|
||||||
|
spooler.setDaemon(true);
|
||||||
|
spooler.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
return queued;
|
return queued;
|
||||||
|
|||||||
Reference in New Issue
Block a user