diff --git a/src/net/socket/tcp_client_socket.cc b/src/net/socket/tcp_client_socket.cc index c6970172be..8a329e8f69 100644 --- a/src/net/socket/tcp_client_socket.cc +++ b/src/net/socket/tcp_client_socket.cc @@ -139,7 +139,7 @@ TCPClientSocket::TCPClientSocket(std::unique_ptr socket, : socket_(std::move(socket)), bind_address_(std::move(bind_address)), addresses_(addresses), - current_address_index_(-1), + current_address_index_(current_address_index), next_connect_state_(CONNECT_STATE_NONE), previously_disconnected_(false), total_received_bytes_(0),