diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-09-25 08:42:31 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-09-25 08:42:31 -0600 |
commit | f05a0577270e64dbd1e90c1aa59d42f23c5b282f (patch) | |
tree | 4c8433f90a9a542ee6c7db48c7b8467aebf6e3df /nuttx | |
parent | 8511911d05a2b91c0dea15ba3c5fc844ae54c2b0 (diff) | |
download | px4-nuttx-f05a0577270e64dbd1e90c1aa59d42f23c5b282f.tar.gz px4-nuttx-f05a0577270e64dbd1e90c1aa59d42f23c5b282f.tar.bz2 px4-nuttx-f05a0577270e64dbd1e90c1aa59d42f23c5b282f.zip |
Can't test for UIP_CLOSED bit in TCP flags; UIP_CLOSED is defined to be 0
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/net/net_monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/net/net_monitor.c b/nuttx/net/net_monitor.c index cf4ffd73f..12907fa42 100644 --- a/nuttx/net/net_monitor.c +++ b/nuttx/net/net_monitor.c @@ -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); } |