Commit e8413541 authored by Max Kellermann's avatar Max Kellermann

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.
parent 81220ca2
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment