sd-device: do not recreate the same symlinks which store watch handle

This commit is contained in:
Yu Watanabe
2021-09-13 11:54:56 +09:00
parent d7950621d2
commit 20ec7d9ed5
+1 -1
View File
@@ -680,7 +680,7 @@ int device_set_watch_handle(sd_device *device, int wd) {
assert(device);
if (wd >= 0 && wd == device->watch_handle)
if (wd >= 0 && wd == device_get_watch_handle(device))
return 0;
device_remove_watch_handle(device);