net/rpmsg: read receiving data after unbind
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
618d47570d
commit
44b08d3a67
@ -898,8 +898,7 @@ static int rpmsg_socket_poll(FAR struct socket *psock,
|
||||
{
|
||||
eventset |= POLLHUP;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
nxmutex_lock(&conn->sendlock);
|
||||
|
||||
if (rpmsg_socket_get_space(conn) > 0)
|
||||
@ -918,7 +917,6 @@ static int rpmsg_socket_poll(FAR struct socket *psock,
|
||||
|
||||
nxmutex_unlock(&conn->recvlock);
|
||||
}
|
||||
}
|
||||
else if (!_SS_ISCONNECTED(conn->sconn.s_flags) &&
|
||||
_SS_ISNONBLOCK(conn->sconn.s_flags))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user