diff --git a/net/local/local_connect.c b/net/local/local_connect.c index 538bed5d0b..0b40ed5acd 100644 --- a/net/local/local_connect.c +++ b/net/local/local_connect.c @@ -287,11 +287,8 @@ int psock_local_connect(FAR struct socket *psock, /* We have to do more for the SOCK_STREAM family */ - if (conn->lc_proto == SOCK_STREAM) - { - ret = local_stream_connect(client, conn, + ret = local_stream_connect(client, conn, _SS_ISNONBLOCK(client->lc_conn.s_flags)); - } net_unlock(); return ret;