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,10 +417,9 @@ directory_update_init(char *path)
if (progress != UPDATE_PROGRESS_IDLE) {
unsigned next_task_id;
if (!path)
return 0;
if (update_paths_nr == ARRAY_SIZE(update_paths)) {
free(path);
if (path)
free(path);
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