Commit 346e31ef authored by Max Kellermann's avatar Max Kellermann

ProxyDatabasePlugin: obey the "recursive" flag

parent b504d631
......@@ -168,8 +168,9 @@ Visit(struct mpd_connection *connection, directory &parent,
directory_new(mpd_directory_get_path(directory), &parent);
bool success = (!visit_directory || visit_directory(*d, error_r)) &&
Visit(connection, *d, recursive,
visit_directory, visit_song, visit_playlist, error_r);
(!recursive ||
Visit(connection, *d, recursive,
visit_directory, visit_song, visit_playlist, error_r));
directory_free(d);
return success;
......
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