If LE discoverying is not completed successly, we should remove
le_discovery_list explictly. Because stop_le_discovery_complete
function will be not called in this exception case.
Change-Id: I1fd812d451121b795105ced5a1723e3187e1d86e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DBG("cp.type %d", cp.type);
DBG("adapter->discovery_enable %d", adapter->discovery_enable);
if (adapter->discovery_enable == 0x00) {
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ g_dbus_remove_watch(dbus_conn, client->watch);
+#endif
adapter->le_discovering = false;
g_dbus_emit_property_changed(dbus_conn, adapter->path,
ADAPTER_INTERFACE, "LEDiscovering");