summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSohyeon Choi <shss.choi@samsung.com>2024-04-07 23:11:32 +0900
committerWootak Jung <wootak.jung@samsung.com>2024-04-08 11:38:35 +0900
commitdef1724d54f7d1186e5d9cd070389fd8512adfc8 (patch)
treeacc2e1ea950f9438b8b4d95c0370bf0a9591fc5b
parent7852ea12fca6ea8194c438a98c0d3cbda54e4290 (diff)
downloadbluez-tizen_7.0.tar.gz
bluez-tizen_7.0.tar.bz2
bluez-tizen_7.0.zip
Change-Id: I8d6d3741b05abb9c2f5a18a34eb197f9a924d149
-rw-r--r--src/device.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/device.c b/src/device.c
index 59edef1b..1b627524 100644
--- a/src/device.c
+++ b/src/device.c
@@ -2286,9 +2286,16 @@ void device_request_disconnect(struct btd_device *device, DBusMessage *msg)
return;
}
- device->disconn_timer = timeout_add_seconds(DISCONNECT_TIMER,
- disconnect_all,
- device, NULL);
+ if (TIZEN_FEATURE_BLUEZ_DA) {
+ DBG("set disconnect timer to zero for fast disconnection");
+ device->disconn_timer = timeout_add_seconds(0,
+ disconnect_all,
+ device, NULL);
+ } else {
+ device->disconn_timer = timeout_add_seconds(DISCONNECT_TIMER,
+ disconnect_all,
+ device, NULL);
+ }
}
bool device_is_disconnecting(struct btd_device *device)