diff options
author | Max Kellermann <max@duempel.org> | 2009-01-08 06:36:40 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-13 23:09:45 +0100 |
commit | 7df1a17db4c2e54ecb0cd3234667289cc0076f08 (patch) | |
tree | 29913a265729ec8a49953f988970ce8b806cc60a /src/update.c | |
parent | a0141dbe4f868413d78c94737846279124415479 (diff) | |
download | mpd-7df1a17db4c2e54ecb0cd3234667289cc0076f08.tar.gz mpd-7df1a17db4c2e54ecb0cd3234667289cc0076f08.tar.xz mpd-7df1a17db4c2e54ecb0cd3234667289cc0076f08.zip |
update: save the database even if it is empty
Save an empty database, even if the music directory is empty.
Diffstat (limited to 'src/update.c')
-rw-r--r-- | src/update.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/update.c b/src/update.c index 10108f0a9..58f1b08d1 100644 --- a/src/update.c +++ b/src/update.c @@ -518,8 +518,9 @@ static void * update_task(void *_path) updateDirectory(directory, &st); } - if (modified) + if (modified || !db_exists()) db_save(); + progress = UPDATE_PROGRESS_DONE; wakeup_main_task(); return NULL; |