Skip to content

Commit

Permalink
Reset ice failure detection time when state changes to connected or r…
Browse files Browse the repository at this point in the history
…eady
  • Loading branch information
atoppi committed Oct 30, 2023
1 parent 0e37c13 commit 0ae1c6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ice.c
Original file line number Diff line number Diff line change
Expand Up @@ -2045,6 +2045,7 @@ static gboolean janus_ice_check_failed(gpointer data) {
if(pc->state == NICE_COMPONENT_STATE_CONNECTED || pc->state == NICE_COMPONENT_STATE_READY) {
/* ICE succeeded in the meanwhile, get rid of this timer */
JANUS_LOG(LOG_VERB, "[%"SCNu64"] ICE succeeded, disabling ICE state check timer!\n", handle->handle_id);
pc->icefailed_detected = 0;
goto stoptimer;
}
/* Still in the failed state, how much time passed since we first detected it? */
Expand Down

0 comments on commit 0ae1c6d

Please sign in to comment.