1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24: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
parent 8815806540
commit a4e958f147

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;
}