Commit bf6da4f3 authored by J. Alexander Treuman's avatar J. Alexander Treuman

initMp3Directory() is only called when (re)creating the db, but before the

db file is written. So don't try to set directory_dbModTime to the mtime of the db file, since it will be incorrect. git-svn-id: https://svn.musicpd.org/mpd/trunk@5945 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent f67b6b89
......@@ -1318,9 +1318,6 @@ void initMp3Directory(void)
freeAllDirectoryStats(mp3rootDirectory);
stats.numberOfSongs = countSongsIn(STDERR_FILENO, NULL);
stats.dbPlayTime = sumSongTimesIn(STDERR_FILENO, NULL);
if (stat(getDbFile(), &st) == 0)
directory_dbModTime = st.st_mtime;
}
static Song *getSongDetails(char *file, char **shortnameRet,
......
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