# HG changeset patch # User Matti Hamalainen # Date 1209519359 -10800 # Node ID 16466c2624b22c586620b8cc0e0807b16eab63ca # Parent a5377b724505cdfe0d0a9ac914db9d5160d04f8d Check if the playlist scanning thread has already been stopped, so that we don't crash in thread joining. diff -r a5377b724505 -r 16466c2624b2 src/audacious/playlist.c --- a/src/audacious/playlist.c Wed Apr 30 03:49:46 2008 +0300 +++ b/src/audacious/playlist.c Wed Apr 30 04:35:59 2008 +0300 @@ -2532,6 +2532,11 @@ playlist_stop_get_info_thread(void) { g_static_rw_lock_writer_lock(&playlist_get_info_rwlock); + if (!playlist_get_info_going) { + g_static_rw_lock_writer_unlock(&playlist_get_info_rwlock); + return; + } + playlist_get_info_going = FALSE; g_static_rw_lock_writer_unlock(&playlist_get_info_rwlock);