From 7e8c6b212db947d7c3458b0368d0a1abe17f11d6 Mon Sep 17 00:00:00 2001 From: Cedric Bail Date: Fri, 5 Aug 2016 12:14:18 -0700 Subject: [PATCH] ecore: properly track events in Efl.Loop.Fd object. Thanks Gustavo. --- src/lib/ecore/efl_loop_fd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/ecore/efl_loop_fd.c b/src/lib/ecore/efl_loop_fd.c index fdd59b1..5df3ec4 100644 --- a/src/lib/ecore/efl_loop_fd.c +++ b/src/lib/ecore/efl_loop_fd.c @@ -130,17 +130,17 @@ _check_fd_event_catcher_del(void *data, const Eo_Event *event) { if (array[i].desc == EFL_LOOP_FD_EVENT_READ) { - if (fd->references.read++ > 0) continue; + if (fd->references.read-- > 0) continue; _efl_loop_fd_reset(event->object, fd); } else if (array[i].desc == EFL_LOOP_FD_EVENT_WRITE) { - if (fd->references.write++ > 0) continue; + if (fd->references.write-- > 0) continue; _efl_loop_fd_reset(event->object, fd); } if (array[i].desc == EFL_LOOP_FD_EVENT_ERROR) { - if (fd->references.error++ > 0) continue; + if (fd->references.error-- > 0) continue; _efl_loop_fd_reset(event->object, fd); } } -- 2.7.4