X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/ea42db4da534aff7a623b651d9287644837b32e2..6bdef28fc792013d0a97d94efd1659fde7921dbd:/event.c?ds=inline diff --git a/event.c b/event.c index ecad9a1..7bcb804 100644 --- a/event.c +++ b/event.c @@ -108,7 +108,7 @@ void event_base_free (struct event_base *base) dLOOPbase; #if EV_MULTIPLICITY - if (ev_default_loop (EVMETHOD_AUTO) != loop) + if (ev_default_loop (EVFLAG_AUTO) != loop) ev_loop_destroy (loop); #endif } @@ -347,7 +347,7 @@ x_loopexit_cb (int revents, void *base) { dLOOPbase; - ev_unloop (EV_A_ EVUNLOOP_ONCE); + ev_unloop (EV_A_ EVUNLOOP_ONE); } int event_base_loopexit (struct event_base *base, struct timeval *tv)