mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +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:
|
case NETCONN_EVT_RCVMINUS:
|
||||||
sock->rcvevent--;
|
sock->rcvevent--;
|
||||||
check_waiters = 0;
|
check_waiters = 0;
|
||||||
|
sock->sendevent = 1;
|
||||||
|
break;
|
||||||
case NETCONN_EVT_SENDPLUS:
|
case NETCONN_EVT_SENDPLUS:
|
||||||
if (sock->sendevent) {
|
if (sock->sendevent) {
|
||||||
check_waiters = 0;
|
check_waiters = 0;
|
||||||
@ -2458,6 +2460,8 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len)
|
|||||||
case NETCONN_EVT_SENDMINUS:
|
case NETCONN_EVT_SENDMINUS:
|
||||||
sock->sendevent = 0;
|
sock->sendevent = 0;
|
||||||
check_waiters = 0;
|
check_waiters = 0;
|
||||||
|
sock->errevent = 1;
|
||||||
|
break;
|
||||||
case NETCONN_EVT_ERROR:
|
case NETCONN_EVT_ERROR:
|
||||||
sock->errevent = 1;
|
sock->errevent = 1;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user