ifdef the upnp stuff in main

This commit is contained in:
Ron Pedde 2007-04-13 23:31:22 +00:00
parent 5e9d9a3f20
commit 69ec57328e
1 changed files with 2 additions and 0 deletions

View File

@ -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)))) {