Infinite loop

This commit is contained in:
Takashi Kokubun 2021-12-13 22:21:31 -08:00
parent e29714484c
commit 4061f77694
No known key found for this signature in database
GPG Key ID: 6FFC433B12EE23DD

View File

@ -7,7 +7,7 @@ mod select;
fn event_loop(input_device: &mut Device) -> Result<(), Box<dyn Error>> {
let mut output_device = output::build_device(input_device).unwrap();
for _ in 0..5 {
loop {
if !select::is_readable(input_device) {
continue;
}
@ -19,7 +19,6 @@ fn event_loop(input_device: &mut Device) -> Result<(), Box<dyn Error>> {
output_device.emit(&[event]).unwrap();
}
}
Ok(())
}
fn main() -> Result<(), Box<dyn Error>> {