ifdef the upnp stuff in main
This commit is contained in:
parent
5e9d9a3f20
commit
69ec57328e
|
@ -589,7 +589,9 @@ int main(int argc, char *argv[]) {
|
||||||
config.reload = 1; /* force a reload on start */
|
config.reload = 1; /* force a reload on start */
|
||||||
|
|
||||||
while(!config.stop) {
|
while(!config.stop) {
|
||||||
|
#ifdef UPNP
|
||||||
upnp_tick(); /* run the upnp loop */
|
upnp_tick(); /* run the upnp loop */
|
||||||
|
#endif
|
||||||
|
|
||||||
if((conf_get_int("general","rescan_interval",0) &&
|
if((conf_get_int("general","rescan_interval",0) &&
|
||||||
(rescan_counter > conf_get_int("general","rescan_interval",0)))) {
|
(rescan_counter > conf_get_int("general","rescan_interval",0)))) {
|
||||||
|
|
Loading…
Reference in New Issue