changeset 3326:6dbb73b8e28c trunk

thread sanity checks
author William Pitcock <nenolod@atheme-project.org>
date Fri, 10 Aug 2007 20:28:30 -0500
parents 6f6f38157229
children 5296086f20cf 70149c3555f4
files src/audacious/playback.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/playback.c	Fri Aug 10 20:23:33 2007 -0500
+++ b/src/audacious/playback.c	Fri Aug 10 20:28:30 2007 -0500
@@ -224,7 +224,10 @@
             playback->plugin->stop(playback);
 
         if (playback->thread != NULL)
+        {
             g_thread_join(playback->thread);
+            playback->thread = NULL;
+        }
 
         free_vis_data();
         ip_data.paused = FALSE;