# HG changeset patch # User William Pitcock # Date 1242363917 18000 # Node ID 9739ba93fd794c544e191d4553694cb8b10a4314 # Parent 8cbf077ba5d05981f02d1aab2d0f5afd691206d1 alsa-ng: Don't try to join threads that have already exited. diff -r 8cbf077ba5d0 -r 9739ba93fd79 src/alsa-ng/alsa-core.c --- a/src/alsa-ng/alsa-core.c Fri May 15 00:02:47 2009 -0500 +++ b/src/alsa-ng/alsa-core.c Fri May 15 00:05:17 2009 -0500 @@ -186,9 +186,10 @@ g_mutex_unlock(pcm_state_mutex); g_cond_broadcast(pcm_state_cond); - g_thread_join(audio_thread); + if (audio_thread != NULL) + g_thread_join(audio_thread); + audio_thread = NULL; - wr_total = 0; wr_hwframes = 0; bps = 0;