summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes2
-rw-r--r--ev.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/Changes b/Changes
index 25e608a..72824fc 100644
--- a/Changes
+++ b/Changes
@@ -11,6 +11,8 @@ WISH? monotonic clocks times/GetTickCount for coarse corrections?
- drop the "struct" from all ev_watcher declarations in the
documentation and did other clarifications (yeah, it was a mistake
to have a struct AND a function called ev_loop).
+ - fix a bug where ev_default would not initialise the default
+ loop again after it was destroyed with ev_default_destroy.
3.45 Tue Oct 21 21:59:26 CEST 2008
- disable inotify usage on linux <2.6.25, as it is broken
diff --git a/ev.c b/ev.c
index 9358364..bcb49b5 100644
--- a/ev.c
+++ b/ev.c
@@ -1640,6 +1640,8 @@ ev_default_destroy (void)
struct ev_loop *loop = ev_default_loop_ptr;
#endif
+ ev_default_loop_ptr = 0;
+
#ifndef _WIN32
ev_ref (EV_A); /* child watcher */
ev_signal_stop (EV_A_ &childev);