# HG changeset patch # User William Pitcock # Date 1184867756 18000 # Node ID 7184bbd637610fe2a9456694b6cbe09764fcaa46 # Parent 1d81217767ab1b2440679fe46e409ae74bb8a0a5 Check to make sure thread isn't free'd(). diff -r 1d81217767ab -r 7184bbd63761 src/lastfm/lastfm.c --- 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());