mirror of
https://github.com/owntone/owntone-server.git
synced 2025-05-05 09:16:38 -04:00
Fork first, ask questions later
This commit is contained in:
parent
47148ed0f6
commit
988f0e5b77
10
src/main.c
10
src/main.c
@ -332,6 +332,11 @@ int main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(config.use_mdns) {
|
||||||
|
fprintf(stderr,"Starting rendezvous daemon\n");
|
||||||
|
rend_init(&config.rend_pid,config.servername, config.port);
|
||||||
|
}
|
||||||
|
|
||||||
DPRINTF(ERR_DEBUG,"Initializing database\n");
|
DPRINTF(ERR_DEBUG,"Initializing database\n");
|
||||||
|
|
||||||
/* Initialize the database before starting */
|
/* Initialize the database before starting */
|
||||||
@ -371,11 +376,6 @@ int main(int argc, char *argv[]) {
|
|||||||
ws_registerhandler(server,"^/logout$",daap_handler,NULL,0);
|
ws_registerhandler(server,"^/logout$",daap_handler,NULL,0);
|
||||||
ws_registerhandler(server,"^/databases/.*",daap_handler,NULL,0);
|
ws_registerhandler(server,"^/databases/.*",daap_handler,NULL,0);
|
||||||
|
|
||||||
if(config.use_mdns) {
|
|
||||||
fprintf(stderr,"Starting rendezvous daemon\n");
|
|
||||||
rend_init(&config.rend_pid,config.servername, config.port);
|
|
||||||
}
|
|
||||||
|
|
||||||
config.stop=0;
|
config.stop=0;
|
||||||
|
|
||||||
while(!config.stop)
|
while(!config.stop)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user