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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user