Fix error handling in example callbacks

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2021-05-26 23:07:46 +02:00
1 parent 18000a8ca0
commit 362670e149
2 files changed
+2

No files matched your search

+1
View File
@@ -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));