Skip to content

Commit

Permalink
Merge #20
Browse files Browse the repository at this point in the history
20: Stop processing events on error r=jmesmon a=avdv

Fixes #19


Co-authored-by: Claudio Bley <[email protected]>
  • Loading branch information
bors[bot] and avdv committed Mar 16, 2022
2 parents 6d56b3b + 47b7cd6 commit e16fa7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main-daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,10 @@ evdev_cb(EV_P_ ev_io *w, int revents)
/* no events */
if (r == -EAGAIN)
break;
else if (r < 0) {
pr_notice("error for libevdev device (%s): %d\n", libevdev_get_name(id->dev), -r);
break;
}

/* need sync??
* FIXME: determine if we're handling this properly or if we
Expand Down

0 comments on commit e16fa7d

Please sign in to comment.