aboutsummaryrefslogtreecommitdiffstats
path: root/src/update_db.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-02-13 19:25:03 +0100
committerMax Kellermann <max@duempel.org>2012-02-13 19:26:04 +0100
commit5ee3a9a9cad4436b99b56ea6336cbfa91fe7a967 (patch)
treeefe0b9748ae98f73474024b8e2100c98e2c870b4 /src/update_db.c
parentdd26fa67f2c7189636e867710d3c94f93296557f (diff)
downloadmpd-5ee3a9a9cad4436b99b56ea6336cbfa91fe7a967.tar.gz
mpd-5ee3a9a9cad4436b99b56ea6336cbfa91fe7a967.tar.xz
mpd-5ee3a9a9cad4436b99b56ea6336cbfa91fe7a967.zip
playlist_vector: require database lock for all functions
Diffstat (limited to '')
-rw-r--r--src/update_db.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/update_db.c b/src/update_db.c
index c6636de1a..8982a53e2 100644
--- a/src/update_db.c
+++ b/src/update_db.c
@@ -96,9 +96,9 @@ delete_name_in(struct directory *parent, const char *name)
modified = true;
}
- db_unlock();
-
playlist_vector_remove(&parent->playlists, name);
+ db_unlock();
+
return modified;
}