Merge "We should break from loop after getting connected." am: 53171e5f97 am: 646a70b1fb am: 298571ec19
am: 485153bf44

Change-Id: Ie88e59fb780e23c063bd2abf0daf53d6f6cbf56a
diff --git a/libcutils/socket_network_client_unix.c b/libcutils/socket_network_client_unix.c
index 46818d6..37851b1 100644
--- a/libcutils/socket_network_client_unix.c
+++ b/libcutils/socket_network_client_unix.c
@@ -112,6 +112,7 @@
         }
 
         result = toggle_O_NONBLOCK(s);
+        break;
     }
 
     freeaddrinfo(addrs);