diff options
author | Sohyeon Choi <shss.choi@samsung.com> | 2024-04-07 23:11:32 +0900 |
---|---|---|
committer | Wootak Jung <wootak.jung@samsung.com> | 2024-04-08 11:38:35 +0900 |
commit | def1724d54f7d1186e5d9cd070389fd8512adfc8 (patch) | |
tree | acc2e1ea950f9438b8b4d95c0370bf0a9591fc5b | |
parent | 7852ea12fca6ea8194c438a98c0d3cbda54e4290 (diff) | |
download | bluez-tizen_7.0.tar.gz bluez-tizen_7.0.tar.bz2 bluez-tizen_7.0.zip |
device: Set disconnect timer to zero for fast disconnectionaccepted/tizen/7.0/unified/20240409.104411accepted/tizen/7.0/unified/20240409.073801tizen_7.0accepted/tizen_7.0_unified
Change-Id: I8d6d3741b05abb9c2f5a18a34eb197f9a924d149
-rw-r--r-- | src/device.c | 13 |
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) |