From 72975f0077e67313f79ff0b4172d510d7b19d293 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 22 Jun 2017 20:54:59 +0100 Subject: [PATCH] unifying: Only mark the device as active once the probe has completed --- plugins/unifying/lu-device-peripheral.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/unifying/lu-device-peripheral.c b/plugins/unifying/lu-device-peripheral.c index 4239784a1..adc70012c 100644 --- a/plugins/unifying/lu-device-peripheral.c +++ b/plugins/unifying/lu-device-peripheral.c @@ -211,8 +211,7 @@ lu_device_peripheral_ping (LuDevice *device, GError **error) lu_device_set_hidpp_version (device, msg->data[0]); } - /* this device is active right now */ - lu_device_add_flag (device, LU_DEVICE_FLAG_ACTIVE); + /* success */ return TRUE; } @@ -280,7 +279,8 @@ lu_device_peripheral_probe (LuDevice *device, GError **error) if (idx != 0x00) lu_device_add_flag (device, LU_DEVICE_FLAG_REQUIRES_ATTACH); - /* always success */ + /* this device is active right now */ + lu_device_add_flag (device, LU_DEVICE_FLAG_ACTIVE); return TRUE; }