PEPPER_ERROR("The event source will be disabled and the fd(%d) will be closed.\n", device_info->fd);
if (device_info->event_source)
+ {
wl_event_source_fd_update(device_info->event_source, (uint32_t)0);
- wl_event_source_remove(device_info->event_source);
+ wl_event_source_remove(device_info->event_source);
+ }
return 0;
}