mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-28 12:35:39 +02:00
modules: handle udev_monitor_receive_device() returning NULL
Closes #109
This commit is contained in:
parent
0f389435ca
commit
1bcf116859
4 changed files with 13 additions and 3 deletions
|
@ -571,6 +571,9 @@ run(struct module *mod)
|
|||
|
||||
if (fds[1].revents & POLLIN) {
|
||||
struct udev_device *dev = udev_monitor_receive_device(dev_mon);
|
||||
if (dev == NULL)
|
||||
continue;
|
||||
|
||||
if (handle_udev_event(mod, dev))
|
||||
update = true;
|
||||
udev_device_unref(dev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue