diff options
author | Max Kellermann <max@duempel.org> | 2008-10-09 19:11:54 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-11 19:21:50 -0700 |
commit | 6fd08bc8fad5d6c4be37ce751d53ef80b756b292 (patch) | |
tree | 11de3cf6fb40a9af6a1d0e43180293bde6ad5cec /src/main.c | |
parent | 1f70121c5604be45e81c5a07d59efea2aaa1597b (diff) | |
download | mpd-6fd08bc8fad5d6c4be37ce751d53ef80b756b292.tar.gz mpd-6fd08bc8fad5d6c4be37ce751d53ef80b756b292.tar.xz mpd-6fd08bc8fad5d6c4be37ce751d53ef80b756b292.zip |
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().
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 07f0f528a..f1c288dd5 100644 --- a/src/main.c +++ b/src/main.c @@ -409,6 +409,8 @@ int main(int argc, char *argv[]) initPlaylist(); initInputPlugins(); + init_main_notify(); + openDB(&options, argv[0]); initCommands(); @@ -424,7 +426,6 @@ int main(int argc, char *argv[]) daemonize(&options); - init_main_notify(); init_output_buffer(); setup_log_output(options.stdOutput); |