Fix two bad "fall-through" code

This commit is contained in:
Dirk Ziegelmeier 2017-10-22 21:26:57 +02:00
parent ddcf9cc764
commit a7f2ef4aec

View File

@ -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;