Change-Id: I8d6d3741b05abb9c2f5a18a34eb197f9a924d149
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)