net/rpmsg: set conn->backlog=-1 only when socket listening

Signed-off-by: yintao <yintao@xiaomi.com>
This commit is contained in:
yintao 2023-09-13 11:50:19 +08:00 committed by Xiang Xiao
parent 4763ca849a
commit 89329dff3b

View File

@ -402,7 +402,7 @@ static inline void rpmsg_socket_destroy_ept(
if (conn->ept.rdev)
{
if (conn->backlog)
if (conn->backlog > 0)
{
/* Listen socket */