update: fix deadlock in delete_song()

Due to a merge error, reap_update_task() called cond_signal_async()
with a locked mutex.  That always fails.  Use cond_signal_sync()
instead.
This commit is contained in:
Max Kellermann 2008-10-08 11:36:38 +02:00
parent 81220ca206
commit e8413541f4

View File

@ -525,7 +525,7 @@ void reap_update_task(void)
LOG("removing: %s\n", song_get_url(delete, tmp));
deleteASongFromPlaylist(delete);
delete = NULL;
cond_signal_async(&delete_cond);
cond_signal_sync(&delete_cond);
}
cond_leave(&delete_cond);