summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
authorroot <root>2007-11-04 18:29:44 +0000
committerroot <root>2007-11-04 18:29:44 +0000
commitf776d56f36abeed4a6091c2ec9b96363213ce2b2 (patch)
tree4708b492a5acc8c39487fd2bfe33cb9ff7954f89 /event.c
parentf4f2094b6a36eac7778c5091ee4160a2f403e808 (diff)
*** empty log message ***
Diffstat (limited to 'event.c')
-rw-r--r--event.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/event.c b/event.c
index 04bd373..030df49 100644
--- a/event.c
+++ b/event.c
@@ -87,7 +87,7 @@ void *event_init (void)
if (x_cur)
x_cur = (struct event_base *)ev_loop_new (EVMETHOD_AUTO);
else
- x_cur = ev_default_loop (EVMETHOD_AUTO);
+ x_cur = (struct event_base *)ev_default_loop (EVMETHOD_AUTO);
#else
assert (("multiple event bases not supported when not compiled with EV_MULTIPLICITY", !x_cur));
@@ -102,7 +102,8 @@ void event_base_free (struct event_base *base)
dLOOPbase;
#if EV_MULTIPLICITY
- ev_loop_delete (loop);
+ if (ev_default_loop (EVMETHOD_AUTO) != loop)
+ ev_loop_destroy (loop);
#endif
}
@@ -354,7 +355,7 @@ int event_base_once (struct event_base *base, int fd, short events, void (*cb)(i
int event_base_priority_init (struct event_base *base, int npri)
{
- dLOOPbase;
+ /*dLOOPbase;*/
return 0;
}