mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +00:00
Fix two bad "fall-through" code
This commit is contained in:
parent
ddcf9cc764
commit
a7f2ef4aec
@ -2449,6 +2449,8 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len)
|
||||
case NETCONN_EVT_RCVMINUS:
|
||||
sock->rcvevent--;
|
||||
check_waiters = 0;
|
||||
sock->sendevent = 1;
|
||||
break;
|
||||
case NETCONN_EVT_SENDPLUS:
|
||||
if (sock->sendevent) {
|
||||
check_waiters = 0;
|
||||
@ -2458,6 +2460,8 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len)
|
||||
case NETCONN_EVT_SENDMINUS:
|
||||
sock->sendevent = 0;
|
||||
check_waiters = 0;
|
||||
sock->errevent = 1;
|
||||
break;
|
||||
case NETCONN_EVT_ERROR:
|
||||
sock->errevent = 1;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user