Skip to content

Commit b1b83c0

Browse files
snglFederico Fissore
authored and
Federico Fissore
committed
Updated YunClient::connect method'
Now it stop the connection on the linux side when it fails
1 parent 0ae9e3a commit b1b83c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Bridge/src/YunClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ int YunClient::connect(const char *host, uint16_t port) {
160160
if (connected())
161161
return 1;
162162

163-
opened = false;
163+
stop();
164164
handle = 0;
165165
return 0;
166166
}

0 commit comments

Comments
 (0)