Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
savoirfairelinux
jami-daemon
Commits
da40f496
Commit
da40f496
authored
Mar 26, 2012
by
Alexandre Savard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#9547: Destroy the STUN resolver in Transport shutdown
parent
c84d4313
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
daemon/src/sip/sipvoiplink.cpp
daemon/src/sip/sipvoiplink.cpp
+6
-0
No files found.
daemon/src/sip/sipvoiplink.cpp
View file @
da40f496
...
...
@@ -1566,6 +1566,12 @@ pjsip_transport *SIPVoIPLink::createStunTransport(pj_str_t serverName, pj_uint16
void
SIPVoIPLink
::
shutdownSipTransport
(
SIPAccount
*
account
)
{
if
(
account
->
isStunEnabled
())
{
pj_str_t
stunServerName
=
account
->
getStunServerName
();
std
::
string
server
(
stunServerName
.
ptr
,
stunServerName
.
slen
);
destroyStunResolver
(
server
);
}
if
(
account
->
transport_
)
{
pjsip_transport_dec_ref
(
account
->
transport_
);
account
->
transport_
=
NULL
;
...
...
Write
Preview
Markdown
is supported
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