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
7eb69faa
Commit
7eb69faa
authored
Mar 04, 2009
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some code cleaning
parent
2ee85311
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
agent/conncheck.c
agent/conncheck.c
+5
-6
No files found.
agent/conncheck.c
View file @
7eb69faa
...
...
@@ -634,7 +634,6 @@ static gboolean priv_conn_keepalive_tick (gpointer pointer)
static
gboolean
priv_turn_allocate_refresh_retransmissions_tick
(
gpointer
pointer
)
{
CandidateRefresh
*
cand
=
(
CandidateRefresh
*
)
pointer
;
guint
timeout
;
g_static_rec_mutex_lock
(
&
cand
->
agent
->
mutex
);
...
...
@@ -652,13 +651,13 @@ static gboolean priv_turn_allocate_refresh_retransmissions_tick (gpointer pointe
nice_socket_send
(
cand
->
nicesock
,
&
cand
->
server
,
stun_message_length
(
&
cand
->
stun_message
),
(
gchar
*
)
cand
->
stun_buffer
);
timeout
=
stun_timer_remainder
(
&
cand
->
timer
);
cand
->
tick_source
=
agent_timeout_add_with_context
(
cand
->
agent
,
timeout
,
cand
->
tick_source
=
agent_timeout_add_with_context
(
cand
->
agent
,
stun_timer_remainder
(
&
cand
->
timer
)
,
priv_turn_allocate_refresh_retransmissions_tick
,
cand
);
break
;
case
STUN_USAGE_TIMER_RETURN_SUCCESS
:
timeout
=
stun_timer_remainder
(
&
cand
->
timer
);
cand
->
tick_source
=
agent_timeout_add_with_context
(
cand
->
agent
,
timeout
,
cand
->
tick_source
=
agent_timeout_add_with_context
(
cand
->
agent
,
stun_timer_remainder
(
&
cand
->
timer
)
,
priv_turn_allocate_refresh_retransmissions_tick
,
cand
);
break
;
}
...
...
@@ -2028,7 +2027,7 @@ priv_add_new_turn_refresh (CandidateDiscovery *cdisco, NiceCandidate *relay_cand
agent
,
cand
,
(
lifetime
-
60
)
*
1000
);
agent
->
refresh_list
=
modified_list
;
/* step: also start the
keepalive
timer */
/* step: also start the
refresh
timer */
/* refresh should be sent 1 minute before it expires */
cand
->
timer_source
=
agent_timeout_add_with_context
(
agent
,
(
lifetime
-
60
)
*
1000
,
...
...
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