From b1b83c09898d2b21ae2e136e4ecba5311f397eab Mon Sep 17 00:00:00 2001 From: sngl Date: Mon, 10 Nov 2014 17:00:27 +0100 Subject: [PATCH] Updated YunClient::connect method' Now it stop the connection on the linux side when it fails --- libraries/Bridge/src/YunClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/Bridge/src/YunClient.cpp b/libraries/Bridge/src/YunClient.cpp index 82965894a..0c5dc479f 100644 --- a/libraries/Bridge/src/YunClient.cpp +++ b/libraries/Bridge/src/YunClient.cpp @@ -160,7 +160,7 @@ int YunClient::connect(const char *host, uint16_t port) { if (connected()) return 1; - opened = false; + stop(); handle = 0; return 0; }