Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
0db9a046
Commit
0db9a046
authored
May 20, 2010
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conncheck: Remove useless checks from priv_add_new_turn_refresh
parent
c4766322
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
26 deletions
+20
-26
agent/conncheck.c
agent/conncheck.c
+20
-26
No files found.
agent/conncheck.c
View file @
0db9a046
...
@@ -2234,13 +2234,10 @@ priv_add_new_turn_refresh (CandidateDiscovery *cdisco, NiceCandidate *relay_cand
...
@@ -2234,13 +2234,10 @@ priv_add_new_turn_refresh (CandidateDiscovery *cdisco, NiceCandidate *relay_cand
{
{
CandidateRefresh
*
cand
;
CandidateRefresh
*
cand
;
NiceAgent
*
agent
=
cdisco
->
agent
;
NiceAgent
*
agent
=
cdisco
->
agent
;
GSList
*
modified_list
;
cand
=
g_slice_new0
(
CandidateRefresh
);
cand
=
g_slice_new0
(
CandidateRefresh
);
if
(
cand
)
{
agent
->
refresh_list
=
g_slist_append
(
agent
->
refresh_list
,
cand
);
modified_list
=
g_slist_append
(
agent
->
refresh_list
,
cand
);
if
(
modified_list
)
{
cand
->
nicesock
=
cdisco
->
nicesock
;
cand
->
nicesock
=
cdisco
->
nicesock
;
cand
->
relay_socket
=
relay_cand
->
sockptr
;
cand
->
relay_socket
=
relay_cand
->
sockptr
;
cand
->
server
=
cdisco
->
server
;
cand
->
server
=
cdisco
->
server
;
...
@@ -2251,7 +2248,6 @@ priv_add_new_turn_refresh (CandidateDiscovery *cdisco, NiceCandidate *relay_cand
...
@@ -2251,7 +2248,6 @@ priv_add_new_turn_refresh (CandidateDiscovery *cdisco, NiceCandidate *relay_cand
memcpy
(
&
cand
->
stun_agent
,
&
cdisco
->
stun_agent
,
sizeof
(
StunAgent
));
memcpy
(
&
cand
->
stun_agent
,
&
cdisco
->
stun_agent
,
sizeof
(
StunAgent
));
nice_debug
(
"Agent %p : Adding new refresh candidate %p with timeout %d"
,
nice_debug
(
"Agent %p : Adding new refresh candidate %p with timeout %d"
,
agent
,
cand
,
(
lifetime
-
60
)
*
1000
);
agent
,
cand
,
(
lifetime
-
60
)
*
1000
);
agent
->
refresh_list
=
modified_list
;
/* step: also start the refresh timer */
/* step: also start the refresh timer */
/* refresh should be sent 1 minute before it expires */
/* refresh should be sent 1 minute before it expires */
...
@@ -2260,8 +2256,6 @@ priv_add_new_turn_refresh (CandidateDiscovery *cdisco, NiceCandidate *relay_cand
...
@@ -2260,8 +2256,6 @@ priv_add_new_turn_refresh (CandidateDiscovery *cdisco, NiceCandidate *relay_cand
priv_turn_allocate_refresh_tick
,
cand
);
priv_turn_allocate_refresh_tick
,
cand
);
nice_debug
(
"timer source is : %d"
,
cand
->
timer_source
);
nice_debug
(
"timer source is : %d"
,
cand
->
timer_source
);
}
}
return
cand
;
return
cand
;
}
}
...
...
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