devilhorns pushed a commit to branch master.

commit e811036199509920d5c536e3470e46df1aca2afb
Author: Chris Michael <[email protected]>
Date:   Fri Aug 9 06:38:54 2013 +0100

    Fix glib integration copy/paste issue:
     - If we are supposed to be deleting an fd handler, let's use
    g_source_remove_poll instead of g_source_add_poll ;)
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/ecore/ecore_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c
index da14b7c..0500052 100644
--- a/src/lib/ecore/ecore_main.c
+++ b/src/lib/ecore/ecore_main.c
@@ -425,8 +425,8 @@ _ecore_main_fdh_poll_del(Ecore_Fd_Handler *fdh)
         fdh->gfd.fd = fdh->fd;
         fdh->gfd.events = _gfd_events_from_fdh(fdh);
         fdh->gfd.revents = 0;
-        DBG("adding gpoll on %d %08x", fdh->fd, fdh->gfd.events);
-        g_source_add_poll(ecore_glib_source, &fdh->gfd);
+        DBG("removing gpoll on %d %08x", fdh->fd, fdh->gfd.events);
+        g_source_remove_poll(ecore_glib_source, &fdh->gfd);
 #endif
      }
 }

-- 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

Reply via email to