diff --git a/src/iomux_epoll.c b/src/iomux_epoll.c index 65a9eaf..6e22319 100644 --- a/src/iomux_epoll.c +++ b/src/iomux_epoll.c @@ -170,7 +170,7 @@ again: event_cnt = iomux_timers_run(mux_); //process timers - if (rc == 0) //Just the timeout + if (rc == 0) //no fd's were ready, no more work to do return event_cnt; for (i = 0; i < rc; i++) { diff --git a/src/iomux_select.c b/src/iomux_select.c index ad39cf9..7312415 100644 --- a/src/iomux_select.c +++ b/src/iomux_select.c @@ -157,7 +157,7 @@ again: event_cnt = iomux_timers_run(mux_); //fire the timers - if (rc == 0) //Just the timeout + if (rc == 0) //no fd's were ready, no more work to do return event_cnt; for (i = 0; rc >= 0 && i < mux->num_descriptors; i++) {