Skip to content
Snippets Groups Projects
Commit 48e48777 authored by Sébastien Blin's avatar Sébastien Blin Committed by Andreas Traczyk
Browse files

upnp: only create upnpController if account is active

Change-Id: I4bef4ef4db759caa805dd14bc7f4fe0107e7839b
parent d5bfc81e
Branches
No related tags found
No related merge requests found
......@@ -267,7 +267,7 @@ Account::unserialize(const YAML::Node& node)
bool enabled;
parseValue(node, UPNP_ENABLED_KEY, enabled);
enableUpnp(enabled);
enableUpnp(enabled && isEnabled());
}
void
......@@ -294,7 +294,7 @@ Account::setAccountDetails(const std::map<std::string, std::string> &details)
userAgent_ = DEFAULT_USER_AGENT;
bool enabled;
parseBool(details, Conf::CONFIG_UPNP_ENABLED, enabled);
enableUpnp(enabled);
enableUpnp(enabled && isEnabled());
}
std::map<std::string, std::string>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment