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().
This commit is contained in:
Max Kellermann
2008-10-09 19:11:54 +02:00
parent 0677116da0
commit 7dd099a60f
4 changed files with 25 additions and 14 deletions

View File

@@ -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();