Mercurial > hg > pulseaudio
changeset 112:95fa206a3e1d
2008-09-09 Omair Majid <omajid@redhat.com>
* src/java/org/classpath/icedtea/pulseaudio/PulseAudioMixer.java
(openRemove): Make the eventloop thread a daemon thread.
author | Omair Majid <omajid@redhat.com> |
---|---|
date | Tue, 09 Sep 2008 11:06:05 -0400 |
parents | 6fa7b2b70780 |
children | 83ebae76a9a9 |
files | src/java/org/classpath/icedtea/pulseaudio/PulseAudioMixer.java |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/java/org/classpath/icedtea/pulseaudio/PulseAudioMixer.java Mon Sep 08 14:15:34 2008 -0400 +++ b/src/java/org/classpath/icedtea/pulseaudio/PulseAudioMixer.java Tue Sep 09 11:06:05 2008 -0400 @@ -587,7 +587,12 @@ eventLoopThread = new Thread(eventLoop, "PulseAudio Eventloop Thread"); - eventLoopThread.setDaemon(false); + /* + * Make the thread exit if by some weird error it is the only thread + * running. The application should be able to exit if the main thread + * doesn't or can't (perhaps an assert?) do a mixer.close(). + */ + eventLoopThread.setDaemon(true); eventLoopThread.start(); try {