diff --git a/net/rpmsg/rpmsg_sockif.c b/net/rpmsg/rpmsg_sockif.c index 8e040d33ca..1ca093768b 100644 --- a/net/rpmsg/rpmsg_sockif.c +++ b/net/rpmsg/rpmsg_sockif.c @@ -950,7 +950,8 @@ static int rpmsg_socket_poll(FAR struct socket *psock, } else /* !_SS_ISCONNECTED(conn->sconn.s_flags) */ { - if (!conn->ept.rdev || conn->unbind) + if ((!conn->ept.rdev || conn->unbind) && + !_SS_INITD(conn->sconn.s_flags)) { eventset |= POLLHUP; }