diff options
author | Max Kellermann <max@duempel.org> | 2009-01-04 20:31:23 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-04 20:31:23 +0100 |
commit | e4a53df7db8a8520c552a718ee7671b986312919 (patch) | |
tree | 20782438e53e3d9487917ef2695d3c7bcdb7c65f /src/main.c | |
parent | 6fb8c5493910097636d2122cb57894375c16901d (diff) | |
download | mpd-e4a53df7db8a8520c552a718ee7671b986312919.tar.gz mpd-e4a53df7db8a8520c552a718ee7671b986312919.tar.xz mpd-e4a53df7db8a8520c552a718ee7671b986312919.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c index c44b6df97..d0573e9b3 100644 --- a/src/main.c +++ b/src/main.c @@ -135,10 +135,6 @@ static void openDB(Options * options, char *argv0) if (db_check() < 0) exit(EXIT_FAILURE); db_init(); - if (db_save() < 0) - exit(EXIT_FAILURE); - if (options->createDB) - exit(EXIT_SUCCESS); } } @@ -238,8 +234,7 @@ int main(int argc, char *argv[]) tag_lib_init(); log_init(options.verbose, options.stdOutput); - if (options.createDB <= 0) - listenOnPort(); + listenOnPort(); changeToUser(); |