Can't test for UIP_CLOSED bit in TCP flags; UIP_CLOSED is defined to be 0

This commit is contained in:
Gregory Nutt
2013-09-25 08:42:31 -06:00
parent cf6ae816da
commit d06b7b0afe
+1 -1
View File
@@ -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);
}