diff src/lastfm/lastfm.c @ 1299:7184bbd63761

Check to make sure thread isn't free'd().
author William Pitcock <nenolod@atheme-project.org>
date Thu, 19 Jul 2007 12:55:56 -0500
parents 8af27e02e7b7
children 59699988d194
line wrap: on
line diff
--- a/src/lastfm/lastfm.c	Mon Jul 16 13:17:12 2007 -0500
+++ b/src/lastfm/lastfm.c	Thu Jul 19 12:55:56 2007 -0500
@@ -382,7 +382,7 @@
                 count++;
 
         }
-        while (g_thread_self()==metadata_thread && err<10);
+        while (g_thread_self()==metadata_thread && err<10 && handle != NULL);
 
 #if DEBUG
         g_print("Exiting thread, ID = %p\n", (void *)g_thread_self());