static void
_efl_net_socket_fd_event_read(void *data EINA_UNUSED, const Efl_Event *event)
{
+ if (efl_io_closer_closed_get(event->object))
+ return; // TODO: unregister READ event
efl_io_reader_can_read_set(event->object, EINA_TRUE);
- efl_io_reader_eos_set(event->object, EINA_FALSE);
}
static void
_efl_net_socket_fd_event_write(void *data EINA_UNUSED, const Efl_Event *event)
{
+ if (efl_io_closer_closed_get(event->object))
+ return; // TODO: unregister WRITE event
efl_io_writer_can_write_set(event->object, EINA_TRUE);
}
static void
_efl_net_socket_fd_event_error(void *data EINA_UNUSED, const Efl_Event *event)
{
+ if (efl_io_closer_closed_get(event->object))
+ return; // TODO: unregister ERROR event
efl_io_writer_can_write_set(event->object, EINA_FALSE);
efl_io_reader_can_read_set(event->object, EINA_FALSE);
efl_io_reader_eos_set(event->object, EINA_TRUE);