From 92db3624061293a7dda7d35a916544470f2acb67 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Wed, 6 Apr 2016 19:04:52 +0200 Subject: [PATCH] Fix an error with unclosed transactions --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 8a88436..0ace6b5 100644 --- a/src/main.c +++ b/src/main.c @@ -146,7 +146,7 @@ int _parse_music_helper( int id = sqlite3_column_int(res, 0); if (id == last_id) { // Skip last inserted item - return 1; + continue; } struct force_vector_s song_db; song_db.tempo = sqlite3_column_double(res, 1); @@ -290,6 +290,7 @@ void update_database( * Rescan errored files * * @param mpd_base_path Root directory of the MPD library. + * @return 0 on success, non zero otherwise. */ void rescan_errored(const char *mpd_base_path) {