diff options
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c index b5763645e8..957bc2d6b5 100644 --- a/src/device.c +++ b/src/device.c @@ -533,7 +533,8 @@ void device_fd_event(Manager *m, int events) { if (!ratelimit_test(&limit)) log_error("Failed to get udev event: %m"); - return; + if (!(events & EPOLLIN)) + return; } if (!(dev = udev_monitor_receive_device(m->udev_monitor))) { |