mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-01 05:22:25 +07:00
Fix error handling in example callbacks
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -291,6 +291,7 @@ static void joystick_cb(uev_t *w, void *arg, int events)
|
||||
/* Possibly joystick was unplugged */
|
||||
warnx("Spurious problem with the joystick watcher, restarting.");
|
||||
uev_io_start(w);
|
||||
return;
|
||||
}
|
||||
|
||||
cnt = read(w->fd, &e, sizeof(e));
|
||||
|
||||
Reference in New Issue
Block a user