update: allow music_root updates to be queued

Previously only updates with subdirectories being
specified could be queued.  No harm in queueing
full updates.
This commit is contained in:
Eric Wong 2008-10-13 09:55:03 +02:00 committed by Max Kellermann
parent 8d907fb9fa
commit 3035a3303d
1 changed files with 2 additions and 3 deletions

View File

@ -417,9 +417,8 @@ directory_update_init(char *path)
if (progress != UPDATE_PROGRESS_IDLE) { if (progress != UPDATE_PROGRESS_IDLE) {
unsigned next_task_id; unsigned next_task_id;
if (!path)
return 0;
if (update_paths_nr == ARRAY_SIZE(update_paths)) { if (update_paths_nr == ARRAY_SIZE(update_paths)) {
if (path)
free(path); free(path);
return 0; return 0;
} }