Skip to content
Snippets Groups Projects
Commit 8905f905 authored by Amna Snene's avatar Amna Snene Committed by François-Simon Fauteux-Chapleau
Browse files

upnp: enforce available mappings limits only if there is a valid IGD.

GitLab: #44
Change-Id: I30ff7177fc9a4a5afbfb6dcd394892792b174e56
parent 872e82fb
Branches
No related tags found
No related merge requests found
......@@ -617,6 +617,10 @@ UPnPContext::getCurrentIgd() const
void
UPnPContext::enforceAvailableMappingsLimits()
{
// If there is no valid IGD, do nothing.
if (!isReady())
return;
for (auto type : {PortType::TCP, PortType::UDP}) {
int pendingCount = 0;
int inProgressCount = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment