Commit 3035a330 authored by Eric Wong's avatar Eric Wong Committed by Max Kellermann

update: allow music_root updates to be queued

Previously only updates with subdirectories being specified could be queued. No harm in queueing full updates.
parent 8d907fb9
...@@ -417,9 +417,8 @@ directory_update_init(char *path) ...@@ -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;
} }
......
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