zehortigoza pushed a commit to branch master.
commit caa6f14c24bcdd3d3292df7150c2af7580e53f19
Author: Eduardo Lima (Etrunko) <[email protected]>
Date: Mon May 27 18:17:54 2013 -0300
eldbus: Reset value of fd_handler after deletion
Signed-off-by: Eduardo Lima (Etrunko) <[email protected]>
---
src/lib/eldbus_core.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/lib/eldbus_core.c b/src/lib/eldbus_core.c
index c2b3b57..3c8217f 100644
--- a/src/lib/eldbus_core.c
+++ b/src/lib/eldbus_core.c
@@ -635,8 +635,15 @@ cb_watch_toggle(DBusWatch *watch, void *data EINA_UNUSED)
hd->enabled = dbus_watch_get_enabled(watch);
DBG("watch %p is %sabled", hd, hd->enabled ? "en" : "dis");
- if (hd->enabled) eldbus_fd_handler_add(hd);
- else ecore_main_fd_handler_del(hd->fd_handler);
+ if (hd->enabled)
+ {
+ eldbus_fd_handler_add(hd);
+ }
+ else
+ {
+ ecore_main_fd_handler_del(hd->fd_handler);
+ hd->fd_handler = NULL;
+ }
}
static void
--
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk