diff --git a/src/uev.c b/src/uev.c index 66d292f..e47c724 100644 --- a/src/uev.c +++ b/src/uev.c @@ -245,17 +245,18 @@ int uev_exit(uev_ctx_t *ctx) continue; switch (w->type) { - case UEV_CRON_TYPE: - case UEV_TIMER_TYPE: - uev_timer_stop(w); + case UEV_IO_TYPE: + uev_io_stop(w); break; case UEV_SIGNAL_TYPE: uev_signal_stop(w); break; - case UEV_IO_TYPE: - uev_io_stop(w); + case UEV_TIMER_TYPE: + case UEV_CRON_TYPE: + uev_timer_stop(w); + break; break; } } diff --git a/src/uev.h b/src/uev.h index 61bdd14..14693d2 100644 --- a/src/uev.h +++ b/src/uev.h @@ -47,9 +47,9 @@ /* Macros */ #define uev_io_active(w) _uev_watcher_active(w) +#define uev_signal_active(w) _uev_watcher_active(w) #define uev_timer_active(w) _uev_watcher_active(w) #define uev_cron_active(w) _uev_watcher_active(w) -#define uev_signal_active(w) _uev_watcher_active(w) /* Event watcher */ typedef struct uev {