Commit af9546db authored by Andrey Skryabin's avatar Andrey Skryabin Committed by Olivier Crête

Conncheck: always updating remote_consent.last_received for selected pair on keepalive

parent be870e75
...@@ -4329,12 +4329,13 @@ static gboolean priv_map_reply_to_relay_remove (NiceAgent *agent, ...@@ -4329,12 +4329,13 @@ static gboolean priv_map_reply_to_relay_remove (NiceAgent *agent,
static gboolean priv_map_reply_to_keepalive_conncheck (NiceAgent *agent, static gboolean priv_map_reply_to_keepalive_conncheck (NiceAgent *agent,
NiceComponent *component, StunMessage *resp) NiceComponent *component, StunMessage *resp)
{ {
guint64 now = g_get_monotonic_time();
nice_debug ("Agent %p : Keepalive for selected pair %p received.", nice_debug ("Agent %p : Keepalive for selected pair %p received.",
agent, &component->selected_pair); agent, &component->selected_pair);
if (agent->consent_freshness) {
guint64 now = g_get_monotonic_time(); /* timeout is checked even if consent_freshness is disabled */
component->selected_pair.remote_consent.last_received = now; component->selected_pair.remote_consent.last_received = now;
}
return TRUE; return TRUE;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment