mirror of
https://github.com/apache/nuttx.git
synced 2026-09-25 17:39:00 +08:00
Can't test for UIP_CLOSED bit in TCP flags; UIP_CLOSED is defined to be 0
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user