From: dh79pyun Date: Fri, 28 Jan 2022 01:33:54 +0000 (+0900) Subject: Don't remove the device, if LE connection exist X-Git-Tag: submit/tizen/20220128.020531^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc66c0d685e074eb7ba6de3cdc3cb5d934dc4930;p=platform%2Fupstream%2Fbluez.git Don't remove the device, if LE connection exist Change-Id: Idb006cc0ceebc1a7315443fb3f06513da65b7f50 Signed-off-by: dh79pyun --- diff --git a/src/device.c b/src/device.c index 3ff8c69..1d760a1 100644 --- a/src/device.c +++ b/src/device.c @@ -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);