mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-19 17:43:35 -04:00
@@ -415,14 +415,13 @@ void InputHub::GetDeviceHandler()
|
||||
}
|
||||
|
||||
if (eventItem.events & EPOLLHUP) {
|
||||
DHLOGI("Removing device %s due to epoll hang-up event.",
|
||||
device->identifier.name.c_str());
|
||||
Device* device = GetDeviceByFdLocked(eventItem.data.fd);
|
||||
if (!device) {
|
||||
DHLOGE("Received unexpected epoll event 0x%08x for unknown fd %d.",
|
||||
eventItem.events, eventItem.data.fd);
|
||||
continue;
|
||||
}
|
||||
DHLOGI("Removing device %s due to epoll hang-up event.", device->identifier.name.c_str());
|
||||
deviceChanged_ = true;
|
||||
CloseDeviceLocked(*device);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user