mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-21 14:03:11 -07:00
Fix Setsu Disconnect for evdev id check
This commit is contained in:
parent
da1ca62943
commit
fd62af5b6c
1 changed files with 4 additions and 2 deletions
|
@ -206,8 +206,6 @@ static bool is_device_interesting(struct udev_device *dev)
|
|||
|
||||
static void update_udev_device(Setsu *setsu, struct udev_device *dev)
|
||||
{
|
||||
if(!is_device_interesting(dev))
|
||||
return;
|
||||
const char *path = udev_device_get_devnode(dev);
|
||||
if(!path)
|
||||
return;
|
||||
|
@ -232,7 +230,11 @@ static void update_udev_device(Setsu *setsu, struct udev_device *dev)
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// not yet added
|
||||
if(!is_device_interesting(dev))
|
||||
return;
|
||||
|
||||
SetsuAvailDevice *adev = calloc(1, sizeof(SetsuAvailDevice));
|
||||
if(!adev)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue