diff --git a/src/ax25.c b/src/ax25.c index 56c5527..42ea112 100644 --- a/src/ax25.c +++ b/src/ax25.c @@ -210,6 +210,8 @@ int patty_ax25_next_event(patty_ax25 *ax25, patty_ax25_event *ev) { ev->type = PATTY_AX25_EVENT_RECV; ev->fd = fd; + FD_CLR(fd, &ax25->unix_fds_pending_read); + return 0; } @@ -217,6 +219,8 @@ int patty_ax25_next_event(patty_ax25 *ax25, patty_ax25_event *ev) { ev->type = PATTY_AX25_EVENT_SEND; ev->fd = fd; + FD_CLR(fd, &ax25->unix_fds_pending_write); + return 0; } @@ -224,6 +228,8 @@ int patty_ax25_next_event(patty_ax25 *ax25, patty_ax25_event *ev) { ev->type = PATTY_AX25_EVENT_ERROR; ev->fd = fd; + FD_CLR(fd, &ax25->unix_fds_pending_error); + return 0; } }