Don't remove the device, if LE connection exist 09/270309/1 submit/tizen_6.5/20220128.020446
authordh79pyun <dh79.pyun@samsung.com>
Fri, 28 Jan 2022 01:33:54 +0000 (10:33 +0900)
committerdh79pyun <dh79.pyun@samsung.com>
Fri, 28 Jan 2022 02:03:40 +0000 (11:03 +0900)
Change-Id: Idb006cc0ceebc1a7315443fb3f06513da65b7f50
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
src/device.c

index 3ff8c69..1d760a1 100644 (file)
@@ -6194,6 +6194,13 @@ static gboolean device_disappeared(gpointer user_data)
 {
        struct btd_device *dev = user_data;
 
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+       if (dev->le_state.connected) {
+               DBG("GATT connection exists, don't remove the device");
+               return FALSE;
+       }
+#endif
+
        dev->temporary_timer = 0;
 
        btd_adapter_remove_device(dev->adapter, dev);