Skip to content

Commit

Permalink
fix(lwip): remove fast reconnect when ip lost
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang Jun Hao authored and xcguang committed Feb 20, 2019
1 parent da7db80 commit 23a2c54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/lwip/core/dhcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ dhcp_fine_tmr()
/* only act on DHCP configured interfaces */
if (netif->dhcp != NULL) {
/*add DHCP retries processing by LiuHan*/
if (DHCP_MAXRTX != 0) {
if (DHCP_MAXRTX != 0 && netif->dhcp->state != DHCP_RENEWING) {
if (netif->dhcp->tries >= DHCP_MAXRTX){
os_printf("DHCP timeout\n");
if (netif->dhcp_event != NULL)
Expand Down

0 comments on commit 23a2c54

Please sign in to comment.