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