From 0ae1c6d286bd59efe41d85efd5186dbad880a6eb Mon Sep 17 00:00:00 2001 From: Alessandro Toppi Date: Mon, 30 Oct 2023 11:24:19 +0100 Subject: [PATCH] Reset ice failure detection time when state changes to connected or ready --- src/ice.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ice.c b/src/ice.c index 5ed7310c19..0e5b25f4cb 100644 --- a/src/ice.c +++ b/src/ice.c @@ -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? */