Merge pull request #701 from Self-Hosting-Group/miniupnpc_exit_with_1_if_no_upnp_devices_found_with_upnp-listdevices
miniupnpc: Exit with 1 if no UPnP devices found with upnp-listdevices
This commit is contained in:
commit
3195ca7a71
|
@ -189,7 +189,8 @@ int main(int argc, char * * argv)
|
|||
free_device(dev_array);
|
||||
}
|
||||
} else {
|
||||
printf("no device found.\n");
|
||||
fprintf(stderr,"No UPnP devices found\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue