1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-18 07:52:14 +01:00

Updated YunClient::connect method'

Now it stop the connection on the linux side when it fails
This commit is contained in:
sngl 2014-11-10 17:00:27 +01:00 committed by Federico Fissore
parent 0ae9e3a0d0
commit b1b83c0989

View File

@ -160,7 +160,7 @@ int YunClient::connect(const char *host, uint16_t port) {
if (connected())
return 1;
opened = false;
stop();
handle = 0;
return 0;
}