ecore: properly track events in Efl.Loop.Fd object.

Thanks Gustavo.
This commit is contained in:
Cedric Bail 2016-08-05 12:14:18 -07:00
parent a7bb1662e2
commit 7e8c6b212d
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}