Infinite loop

pull/39/head
Takashi Kokubun 3 years ago
parent e29714484c
commit 4061f77694
No known key found for this signature in database
GPG Key ID: 6FFC433B12EE23DD

@ -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>> {

Loading…
Cancel
Save