mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
net/rpmsg: add err handle when rpmsg_socket_unbind called
After waiting, it is necessary to check if the connection has been disconnected Signed-off-by: yintao <yintao@xiaomi.com>
This commit is contained in:
parent
3fa55fb72e
commit
741324d73c
1 changed files with 4 additions and 0 deletions
|
|
@ -778,6 +778,10 @@ static int rpmsg_socket_connect_internal(FAR struct socket *psock)
|
|||
|
||||
ret = net_sem_timedwait(&conn->sendsem,
|
||||
_SO_TIMEOUT(conn->sconn.s_sndtimeo));
|
||||
if (!conn->ept.rdev || conn->unbind)
|
||||
{
|
||||
ret = -ECONNRESET;
|
||||
}
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue