Commit 79a28e5c authored by Max Kellermann's avatar Max Kellermann

update: check progress!=IDLE in reap_update_task()

When the update task is idle, there is no need to check for deleted songs. Return early from reap_update_task().
parent 69e34f11
......@@ -456,6 +456,9 @@ void reap_update_task(void)
assert(pthread_equal(pthread_self(), main_task));
if (progress == UPDATE_PROGRESS_IDLE)
return;
cond_enter(&delete_cond);
if (delete) {
char tmp[MPD_PATH_MAX];
......
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