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:
parent
0ae9e3a0d0
commit
b1b83c0989
@ -160,7 +160,7 @@ int YunClient::connect(const char *host, uint16_t port) {
|
|||||||
if (connected())
|
if (connected())
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
opened = false;
|
stop();
|
||||||
handle = 0;
|
handle = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user