diff --git a/src/iomux_impl.c b/src/iomux_impl.c index e30f178..ae3a083 100644 --- a/src/iomux_impl.c +++ b/src/iomux_impl.c @@ -149,8 +149,8 @@ int iomux_update_events(struct IOMux *mux, struct IOMuxFD *fd, unsigned int what assert(fd->fd >= 0); if (fd->what != what) { - rc = mux->ops.update_events_impl(mux, fd); fd->what = what; + rc = mux->ops.update_events_impl(mux, fd); } return rc;