Skip to content

Commit 2fb91a3

Browse files
Merge branch 'v1.5'
2 parents a941017 + aae542d commit 2fb91a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/agent.c

+4
Original file line numberDiff line numberDiff line change
@@ -1140,9 +1140,13 @@ int agent_bookkeeping(juice_agent_t *agent, timestamp_t *next_timestamp) {
11401140
if (entry->next_transmission && *next_timestamp > entry->next_transmission)
11411141
*next_timestamp = entry->next_transmission;
11421142

1143+
#if JUICE_DISABLE_CONSENT_FRESHNESS
1144+
// No expiration
1145+
#else
11431146
if (entry->state == AGENT_STUN_ENTRY_STATE_SUCCEEDED_KEEPALIVE && entry->pair &&
11441147
*next_timestamp > entry->pair->consent_expiry)
11451148
*next_timestamp = selected_pair->consent_expiry;
1149+
#endif
11461150
}
11471151

11481152
return 0;

0 commit comments

Comments
 (0)