mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-24 23:25:58 +00:00
minor: comment, whitespace
This commit is contained in:
parent
d73e225519
commit
f1f6050ad7
|
@ -1593,6 +1593,8 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len)
|
||||||
SYS_ARCH_PROTECT(lev);
|
SYS_ARCH_PROTECT(lev);
|
||||||
if (conn->socket < 0) {
|
if (conn->socket < 0) {
|
||||||
if (evt == NETCONN_EVT_RCVPLUS) {
|
if (evt == NETCONN_EVT_RCVPLUS) {
|
||||||
|
/* conn->socket is -1 on initialization
|
||||||
|
lwip_accept adjusts sock->recvevent if conn->socket < -1 */
|
||||||
conn->socket--;
|
conn->socket--;
|
||||||
}
|
}
|
||||||
SYS_ARCH_UNPROTECT(lev);
|
SYS_ARCH_UNPROTECT(lev);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user