Skip to content

Commit

Permalink
Merge branch 'v1.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
paullouisageneau committed Jan 10, 2025
2 parents a941017 + aae542d commit 2fb91a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -1140,9 +1140,13 @@ int agent_bookkeeping(juice_agent_t *agent, timestamp_t *next_timestamp) {
if (entry->next_transmission && *next_timestamp > entry->next_transmission)
*next_timestamp = entry->next_transmission;

#if JUICE_DISABLE_CONSENT_FRESHNESS
// No expiration
#else
if (entry->state == AGENT_STUN_ENTRY_STATE_SUCCEEDED_KEEPALIVE && entry->pair &&
*next_timestamp > entry->pair->consent_expiry)
*next_timestamp = selected_pair->consent_expiry;
#endif
}

return 0;
Expand Down

0 comments on commit 2fb91a3

Please sign in to comment.