summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>2014-10-16 16:30:50 +0200
committerCorentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>2014-10-16 16:34:02 +0200
commitc135cd5be417b55b9a25c32d4cc584a6662fb109 (patch)
tree0dbe1bf14b506e061b0fe3af279c7df1df086449
parent014a6c5edc61aca99164393dc669c026ee20cb5f (diff)
downloadbluetooth-accepted/tizen_3.0.m14.3_ivi.tar.gz
bluetooth-accepted/tizen_3.0.m14.3_ivi.tar.bz2
bluetooth-accepted/tizen_3.0.m14.3_ivi.zip
Currently when user stops the discovery, it always returns an error. When the discovery is stopped by the timeout callback, there is no error. This workaround consists of never returns any error. Change-Id: I9c5fa539f56997ec4210666e13cced600b58575f Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
-rw-r--r--src/bluetooth-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth-common.c b/src/bluetooth-common.c
index 67a6cc1..b17f8c2 100644
--- a/src/bluetooth-common.c
+++ b/src/bluetooth-common.c
@@ -523,7 +523,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
case BLUETOOTH_EVENT_DISCOVERY_FINISHED:
BT_INFO("bt_adapter_device_discovery_state_changed_cb() will be called with BT_ADAPTER_DEVICE_DISCOVERY_FINISHED");
((bt_adapter_device_discovery_state_changed_cb)bt_event_slot_container[event_index].callback)
- (_bt_get_error_code(param->result), BT_ADAPTER_DEVICE_DISCOVERY_FINISHED, NULL, bt_event_slot_container[event_index].user_data);
+ (BT_ERROR_NONE, BT_ADAPTER_DEVICE_DISCOVERY_FINISHED, NULL, bt_event_slot_container[event_index].user_data);
break;
case BLUETOOTH_EVENT_REMOTE_DEVICE_NAME_UPDATED:
BT_INFO("bt_adapter_device_discovery_state_changed_cb() will be called with BT_ADAPTER_DEVICE_DISCOVERY_FOUND");