Update dns.c

This commit is contained in:
Bernard Xiong 2019-03-13 17:19:41 +08:00 committed by GitHub
parent f089a6ce96
commit 436d9d931d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -666,7 +666,6 @@ dns_check_entry(u8_t i)
pEntry->numdns++;
pEntry->tmr = 1;
pEntry->retries = 0;
// break;
} else {
LWIP_DEBUGF(DNS_DEBUG, ("dns_check_entry: \"%s\": timeout\n", pEntry->name));
/* call specified callback function if provided */
@ -678,7 +677,7 @@ dns_check_entry(u8_t i)
break;
}
}
else{
else {
/* wait longer for the next retry */
pEntry->tmr = pEntry->retries;
}