mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-14 19:03:42 +00:00
Fix error handling in example callbacks
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
18000a8ca0
commit
362670e149
2 files changed
+2
No files matched your search
@@ -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