Skip to content

Commit d481a1f

Browse files
Zhang Jun Haoxcguang
Zhang Jun Hao
authored andcommitted
fix(lwip): remove fast reconnect when ip lost
1 parent fb644c1 commit d481a1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third_party/lwip/core/dhcp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ dhcp_fine_tmr()
383383
/* only act on DHCP configured interfaces */
384384
if (netif->dhcp != NULL) {
385385
/*add DHCP retries processing by LiuHan*/
386-
if (DHCP_MAXRTX != 0) {
386+
if (DHCP_MAXRTX != 0 && netif->dhcp->state != DHCP_RENEWING) {
387387
if (netif->dhcp->tries >= DHCP_MAXRTX){
388388
os_printf("DHCP timeout\n");
389389
if (netif->dhcp_event != NULL)

0 commit comments

Comments
 (0)