mirror of
https://github.com/espressif/esp-lwip.git
synced 2026-09-24 18:07:36 +00:00
Fix: Added check to ensure safe restart of dhcp fine timer
This commit is contained in:
@@ -567,7 +567,9 @@ dhcp_fine_tmr(void)
|
|||||||
}
|
}
|
||||||
#if ESP_LWIP_DHCP_FINE_TIMERS_ONDEMAND
|
#if ESP_LWIP_DHCP_FINE_TIMERS_ONDEMAND
|
||||||
if (tmr_restart) {
|
if (tmr_restart) {
|
||||||
sys_timeout(DHCP_FINE_TIMER_MSECS, dhcp_fine_timeout_cb, (void *)netif);
|
if (dhcp->fine_timer_enabled == true) {
|
||||||
|
sys_timeout(DHCP_FINE_TIMER_MSECS, dhcp_fine_timeout_cb, (void *)netif);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
sys_untimeout(dhcp_fine_timeout_cb, (void *)netif);
|
sys_untimeout(dhcp_fine_timeout_cb, (void *)netif);
|
||||||
dhcp->fine_timer_enabled = false;
|
dhcp->fine_timer_enabled = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user