From e4a53df7db8a8520c552a718ee7671b986312919 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 4 Jan 2009 20:31:23 +0100 Subject: 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. --- src/database.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/database.c') diff --git a/src/database.c b/src/database.c index 9eadd17f..42dd0221 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 -- cgit v1.2.3