Commit 8fbc1085 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Fix #611 UPnP messages whereas UPnP has been disabled in configuration

parent 814f58e2
......@@ -119,11 +119,13 @@ function WebAdmin (dbConf, overConf) {
if (server.upnpAPI) {
server.upnpAPI.stopRegular();
}
try {
yield server.upnp();
server.upnpAPI.startRegular();
} catch (e) {
logger.error(e);
if (server.conf.upnp) {
try {
yield server.upnp();
server.upnpAPI.startRegular();
} catch (e) {
logger.error(e);
}
}
return {};
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment