aboutsummaryrefslogtreecommitdiffstats
path: root/src/database.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-04 20:31:23 +0100
committerMax Kellermann <max@duempel.org>2009-01-04 20:31:23 +0100
commite4a53df7db8a8520c552a718ee7671b986312919 (patch)
tree20782438e53e3d9487917ef2695d3c7bcdb7c65f /src/database.c
parent6fb8c5493910097636d2122cb57894375c16901d (diff)
downloadmpd-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 'src/database.c')
-rw-r--r--src/database.c7
1 files changed, 0 insertions, 7 deletions
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