mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 07:28:38 +08:00
net/rpmsg: set conn->backlog=-1 only when socket listening
Signed-off-by: yintao <yintao@xiaomi.com>
This commit is contained in:
parent
4763ca849a
commit
89329dff3b
1 changed files with 1 additions and 1 deletions
|
@ -402,7 +402,7 @@ static inline void rpmsg_socket_destroy_ept(
|
|||
|
||||
if (conn->ept.rdev)
|
||||
{
|
||||
if (conn->backlog)
|
||||
if (conn->backlog > 0)
|
||||
{
|
||||
/* Listen socket */
|
||||
|
||||
|
|
Loading…
Reference in a new issue