diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2016-09-22 06:41:49 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-09-22 06:41:49 +0000 |
commit | 53171e5f97a286a9a53cf9d52e3deb4accdf8edc (patch) | |
tree | 78e25e5e9f41997be54ee9db7e304ce7e8d8772a | |
parent | 3562fd0fa85ca59e5650f1fa21ae1f1e0cd9cf46 (diff) | |
parent | 9b7341fe57ee9e4e95b111a14966107b3f0582d0 (diff) | |
download | system_core-53171e5f97a286a9a53cf9d52e3deb4accdf8edc.tar.gz system_core-53171e5f97a286a9a53cf9d52e3deb4accdf8edc.tar.bz2 system_core-53171e5f97a286a9a53cf9d52e3deb4accdf8edc.zip |
Merge "We should break from loop after getting connected."
-rw-r--r-- | libcutils/socket_network_client_unix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcutils/socket_network_client_unix.c b/libcutils/socket_network_client_unix.c index 46818d695..37851b17a 100644 --- a/libcutils/socket_network_client_unix.c +++ b/libcutils/socket_network_client_unix.c @@ -112,6 +112,7 @@ int socket_network_client_timeout(const char* host, int port, int type, int time } result = toggle_O_NONBLOCK(s); + break; } freeaddrinfo(addrs); |