update: save the database even if it is empty

Save an empty database, even if the music directory is empty.
This commit is contained in:
Max Kellermann
2009-01-08 07:36:40 +01:00
parent bb08679a70
commit 628866a065
2 changed files with 13 additions and 1 deletions

View File

@@ -647,8 +647,9 @@ static void * update_task(void *_path)
updateDirectory(directory, &st);
}
if (modified)
if (modified || !db_exists())
db_save();
progress = UPDATE_PROGRESS_DONE;
event_pipe_emit(PIPE_EVENT_UPDATE);
return NULL;