diff --git a/src/dial_device/events.rs b/src/dial_device/events.rs index 9a74d6d..674a993 100644 --- a/src/dial_device/events.rs +++ b/src/dial_device/events.rs @@ -78,7 +78,7 @@ impl EventsWorker { loop { let _ = self .events - .send(match device.next_event(evdev_rs::ReadFlag::NORMAL) { + .send(match device.next_event(evdev_rs::ReadFlag::BLOCKING) { Ok((read_status, event)) => RawInputEvent::Event(read_status, event), // this error corresponds to the device disconnecting, which is fine Err(e) if e.raw_os_error() == Some(19) => break,