Can't test for UIP_CLOSED bit in TCP flags; UIP_CLOSED is defined to be 0
This commit is contained in:
parent
cf6ae816da
commit
d06b7b0afe
|
@ -138,7 +138,7 @@ int net_startmonitor(FAR struct socket *psock)
|
|||
* the monitoring callback.)
|
||||
*/
|
||||
|
||||
if ((conn->tcpstateflags & UIP_CLOSED) != 0)
|
||||
if (conn->tcpstateflags == UIP_CLOSED)
|
||||
{
|
||||
connection_event(conn, UIP_CLOSE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue