diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -821,6 +821,11 @@ main (int argc, char *argv[]) { // } close(s); + // become a server + if (server_start () < 0) { + exit (-1); + } + // hack: report nowplaying if (!strcmp (cmdline, "--nowplaying")) { char nothing[] = "nothing"; @@ -828,7 +833,6 @@ main (int argc, char *argv[]) { return 0; } - pl_init (); conf_init (); conf_load (); // required by some plugins at startup @@ -859,10 +863,6 @@ main (int argc, char *argv[]) { } } - // become a server - if (server_start () < 0) { - exit (-1); - } #if 0 signal (SIGTERM, sigterm_handler); atexit (atexit_handler); // helps to save in simple cases |