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().
This commit is contained in:
Max Kellermann 2008-10-09 19:17:38 +02:00
parent 69e34f11f5
commit 79a28e5c72

View File

@ -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];