Skip to content

Commit

Permalink
Merge pull request #10249 from MartijnKaijser/upnp
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins4kodi committed Aug 13, 2016
2 parents 0671eaf + 851af62 commit 852f4d7
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions xbmc/network/NetworkServices.cpp
Expand Up @@ -827,9 +827,20 @@ bool CNetworkServices::StartUPnP()
bool ret = false;
#ifdef HAS_UPNP
ret |= StartUPnPClient();
ret |= StartUPnPServer();
ret |= StartUPnPController();
ret |= StartUPnPRenderer();
if (CSettings::GetInstance().GetBool(CSettings::SETTING_SERVICES_UPNPSERVER))
{
ret |= StartUPnPServer();
}

if (CSettings::GetInstance().GetBool(CSettings::SETTING_SERVICES_UPNPCONTROLLER))
{
ret |= StartUPnPController();
}

if (CSettings::GetInstance().GetBool(CSettings::SETTING_SERVICES_UPNPRENDERER))
{
ret |= StartUPnPRenderer();
}
#endif // HAS_UPNP
return ret;
}
Expand Down

0 comments on commit 852f4d7

Please sign in to comment.