don't exit after --create-db

Start the daemon after --create-db.  This makes --create-db a flag
which discards the old database and starts with a fresh one.
This commit is contained in:
Max Kellermann
2009-01-04 20:31:23 +01:00
parent 6fb8c54939
commit e4a53df7db
5 changed files with 4 additions and 15 deletions

View File

@@ -57,13 +57,6 @@ db_init(void)
ret = directory_update_init(NULL);
if (ret == 0)
g_error("directory update failed");
do {
event_pipe_wait();
} while (isUpdatingDB());
stats.numberOfSongs = countSongsIn(NULL);
stats.dbPlayTime = sumSongTimesIn(NULL);
}
void