fix issue in dns, no wizchip_close, hopefully close was meant

This commit is contained in:
2020-11-07 20:54:25 +01:00
parent 8db71e5eb4
commit 5323a6d8e4

View File

@ -539,7 +539,7 @@ int8_t DNS_run(uint8_t * dns_ip, uint8_t * name, uint8_t * ip_from_dns)
#ifdef _DNS_DEBUG_ #ifdef _DNS_DEBUG_
printf("> DNS Server is not responding : %d.%d.%d.%d\r\n", dns_ip[0], dns_ip[1], dns_ip[2], dns_ip[3]); printf("> DNS Server is not responding : %d.%d.%d.%d\r\n", dns_ip[0], dns_ip[1], dns_ip[2], dns_ip[3]);
#endif #endif
wizchip_close(DNS_SOCKET); close(DNS_SOCKET);
return 0; // timeout occurred return 0; // timeout occurred
} }
else if (ret_check_timeout == 0) { else if (ret_check_timeout == 0) {