diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/device.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/core/device.c b/src/core/device.c index c93c94726d..72d98aea72 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -303,14 +303,6 @@ static int device_process_new_device(Manager *m, struct udev_device *dev) { assert(m); -#if 0 - /* FIXME: this is always false for devices received from udev_monitor */ - - /* Don't pick up devices before udev finished initialization for them */ - if (!udev_device_get_is_initialized(dev)) - return 0; -#endif - sysfs = udev_device_get_syspath(dev); if (!sysfs) return 0; @@ -557,6 +549,10 @@ static int device_enumerate(Manager *m) { if (r < 0) goto fail; + r = udev_enumerate_add_match_is_initialized(e); + if (r < 0) + goto fail; + r = udev_enumerate_scan_devices(e); if (r < 0) goto fail; |