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:
parent
69e34f11f5
commit
79a28e5c72
@ -456,6 +456,9 @@ void reap_update_task(void)
|
|||||||
|
|
||||||
assert(pthread_equal(pthread_self(), main_task));
|
assert(pthread_equal(pthread_self(), main_task));
|
||||||
|
|
||||||
|
if (progress == UPDATE_PROGRESS_IDLE)
|
||||||
|
return;
|
||||||
|
|
||||||
cond_enter(&delete_cond);
|
cond_enter(&delete_cond);
|
||||||
if (delete) {
|
if (delete) {
|
||||||
char tmp[MPD_PATH_MAX];
|
char tmp[MPD_PATH_MAX];
|
||||||
|
Loading…
Reference in New Issue
Block a user