From 5ee3a9a9cad4436b99b56ea6336cbfa91fe7a967 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 13 Feb 2012 19:25:03 +0100 Subject: playlist_vector: require database lock for all functions --- src/update_db.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/update_db.c') diff --git a/src/update_db.c b/src/update_db.c index c6636de1..8982a53e 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; } -- cgit v1.2.3