summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2008-10-24 08:15:33 +0000
committerroot <root>2008-10-24 08:15:33 +0000
commit2c4998e8b45992e3454b8c487f5f1ec02efc5f6f (patch)
treeba1fe818f818ef9af2ead7f7dbbbbbe9feebd30b
parent1d4fd7ad8cc7bf6b598cf1838f90b92e00a32de5 (diff)
*** empty log message ***
-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);