Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jenny Ryan
ouinet
Commits
89fdad9c
Commit
89fdad9c
authored
Feb 01, 2021
by
Ivan Vilata-i-Balaguer
Browse files
Some minimal debug logging of UPnP mapping addition.
parent
99e0d54d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/upnp.h
View file @
89fdad9c
...
...
@@ -72,6 +72,7 @@ private:
if
(
!
r_igds
)
{
mapping_disabled
();
LOG_DEBUG
(
"UPnP: No IGDs found, waiting."
);
async_sleep
(
exec
,
failure_wait_time
,
cancel
,
yield
);
if
(
cancel
)
return
;
continue
;
...
...
@@ -79,6 +80,7 @@ private:
auto
igds
=
move
(
r_igds
.
value
());
LOG_DEBUG
(
"UPnP: Adding mappings for
\"
"
,
mapping_desc
,
"
\"
..."
);
size_t
success_cnt
=
0
;
for
(
auto
&
igd
:
igds
)
{
auto
cancelled
=
cancel
.
connect
([
&
]
{
igd
.
stop
();
});
...
...
@@ -95,6 +97,7 @@ private:
mapping_enabled
();
}
}
LOG_DEBUG
(
"UPnP: Adding mappings for
\"
"
,
mapping_desc
,
"
\"
: done"
);
if
(
success_cnt
==
0
)
mapping_disabled
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment