1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Fix return value of WiFiClient::connect (#511)

This commit is contained in:
Ivan Grokhotkov 2015-07-06 08:02:24 +03:00
parent 212a2cfa60
commit 6f63ad1ee4

View File

@ -110,7 +110,7 @@ int WiFiClient::connect(IPAddress ip, uint16_t port)
netif* interface = ip_route(&addr);
if (!interface) {
DEBUGV("no route to host\r\n");
return 1;
return 0;
}
tcp_pcb* pcb = tcp_new();