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
@ -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 New Issue
Block a user