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
35f2bbc2
Commit
35f2bbc2
authored
Jan 31, 2011
by
Sjoerd Simons
Committed by
Youness Alaoui
Feb 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only restart the timer once
parent
fa23dd5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
agent/conncheck.c
agent/conncheck.c
+7
-3
agent/conncheck.h
agent/conncheck.h
+1
-0
No files found.
agent/conncheck.c
View file @
35f2bbc2
...
@@ -1763,9 +1763,13 @@ static gboolean priv_schedule_triggered_check (NiceAgent *agent, Stream *stream,
...
@@ -1763,9 +1763,13 @@ static gboolean priv_schedule_triggered_check (NiceAgent *agent, Stream *stream,
* we'll resend the exiting transactions faster if needed...? :P
* we'll resend the exiting transactions faster if needed...? :P
*/
*/
nice_debug
(
"Agent %p : check already in progress, "
nice_debug
(
"Agent %p : check already in progress, "
"restarting the timer.."
,
agent
);
"restarting the timer again?: %s .."
,
agent
,
stun_timer_start
(
&
p
->
timer
,
STUN_TIMER_DEFAULT_TIMEOUT
,
p
->
timer_restarted
?
"no"
:
"yes"
);
STUN_TIMER_DEFAULT_MAX_RETRANSMISSIONS
);
if
(
!
p
->
timer_restarted
)
{
stun_timer_start
(
&
p
->
timer
,
STUN_TIMER_DEFAULT_TIMEOUT
,
STUN_TIMER_DEFAULT_MAX_RETRANSMISSIONS
);
p
->
timer_restarted
=
TRUE
;
}
}
}
else
if
(
p
->
state
==
NICE_CHECK_SUCCEEDED
||
else
if
(
p
->
state
==
NICE_CHECK_SUCCEEDED
||
p
->
state
==
NICE_CHECK_DISCOVERED
)
{
p
->
state
==
NICE_CHECK_DISCOVERED
)
{
...
...
agent/conncheck.h
View file @
35f2bbc2
...
@@ -73,6 +73,7 @@ struct _CandidateCheckPair
...
@@ -73,6 +73,7 @@ struct _CandidateCheckPair
NiceCheckState
state
;
NiceCheckState
state
;
gboolean
nominated
;
gboolean
nominated
;
gboolean
controlling
;
gboolean
controlling
;
gboolean
timer_restarted
;
guint64
priority
;
guint64
priority
;
GTimeVal
next_tick
;
/* next tick timestamp */
GTimeVal
next_tick
;
/* next tick timestamp */
StunTimer
timer
;
StunTimer
timer
;
...
...
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