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