aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/db/ProxyDatabasePlugin.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/db/ProxyDatabasePlugin.cxx b/src/db/ProxyDatabasePlugin.cxx
index b941b9576..3a2f9c2cf 100644
--- a/src/db/ProxyDatabasePlugin.cxx
+++ b/src/db/ProxyDatabasePlugin.cxx
@@ -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;