forked from enlightenment/efl
ecore: properly track events in Efl.Loop.Fd object.
Thanks Gustavo.
This commit is contained in:
parent
a7bb1662e2
commit
7e8c6b212d
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue