aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmdline.c2
-rw-r--r--src/database.c7
-rw-r--r--src/main.c7
3 files changed, 2 insertions, 14 deletions
diff --git a/src/cmdline.c b/src/cmdline.c
index 35adb2a8d..48c1e87e6 100644
--- a/src/cmdline.c
+++ b/src/cmdline.c
@@ -86,7 +86,7 @@ void parseOptions(int argc, char **argv, Options *options)
{ "kill", 0, 0, G_OPTION_ARG_NONE, &options->kill,
"kill the currently running mpd session", NULL },
{ "create-db", 0, 0, G_OPTION_ARG_NONE, &option_create_db,
- "force (re)creation of database and exit", NULL },
+ "force (re)creation of database", NULL },
{ "no-create-db", 0, 0, G_OPTION_ARG_NONE, &option_no_create_db,
"don't create database, even if it doesn't exist", NULL },
{ "no-daemon", 0, 0, G_OPTION_ARG_NONE, &option_no_daemon,
diff --git a/src/database.c b/src/database.c
index 9eadd17f7..42dd02219 100644
--- a/src/database.c
+++ b/src/database.c
@@ -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
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();