aboutsummaryrefslogtreecommitdiffstats
path: root/src/update.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-09 19:17:38 +0200
committerMax Kellermann <max@duempel.org>2008-10-09 19:17:38 +0200
commit79a28e5c72ae01164b88ae6d8a510f47a92d231f (patch)
tree4647fe22fbb0f8e273d97f2fa57de6fc3c9239a5 /src/update.c
parent69e34f11f53920acf0e90cc1875abeba22c52b92 (diff)
downloadmpd-79a28e5c72ae01164b88ae6d8a510f47a92d231f.tar.gz
mpd-79a28e5c72ae01164b88ae6d8a510f47a92d231f.tar.xz
mpd-79a28e5c72ae01164b88ae6d8a510f47a92d231f.zip
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().
Diffstat (limited to '')
-rw-r--r--src/update.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/update.c b/src/update.c
index 890612b74..9cb3739be 100644
--- a/src/update.c
+++ b/src/update.c
@@ -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];