From 7dd099a60f0a966382e5369ac064f9089ce0c8c9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 9 Oct 2008 19:11:54 +0200 Subject: update: don't export updateDirectory() If the user requests database update during startup, call directory_update_init(). This should be changed to fully asynchronous update later. For this to work, main_notify has to be initialized before db_init(). --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index f0079e438..8e6314a82 100644 --- a/src/main.c +++ b/src/main.c @@ -412,6 +412,8 @@ int main(int argc, char *argv[]) initPlaylist(); decoder_plugin_init_all(); + init_main_notify(); + openDB(&options, argv[0]); initCommands(); @@ -429,7 +431,6 @@ int main(int argc, char *argv[]) daemonize(&options); - init_main_notify(); setup_log_output(options.stdOutput); initSigHandlers(); -- cgit v1.2.3