We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8292553 + b68a552 commit 248948aCopy full SHA for 248948a
components/route_hook/src/esp_route_table.c
@@ -77,7 +77,9 @@ esp_route_entry_t *esp_route_table_add_route_entry(const esp_route_entry_t *rout
77
}
78
entry->preference = route_entry->preference;
79
entry->lifetime_seconds = route_entry->lifetime_seconds;
80
- sys_timeout(entry->lifetime_seconds * 1000, route_timeout_handler, entry);
+ if (entry->lifetime_seconds != UINT32_MAX) {
81
+ sys_timeout(entry->lifetime_seconds * 1000, route_timeout_handler, entry);
82
+ }
83
return entry;
84
85
0 commit comments