Change-Id: I805af963a64364b478d30051a244bc7fa3bb8ce1
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
&error);
if (result == NULL) {
- int ret = BLUETOOTH_ERROR_INTERNAL;
BT_ERR("[IsConnectedProfile] Error occured in Proxy call");
if (error) {
BT_ERR("%s", error->message);
if (g_strrstr(error->message, "Not Connected"))
- ret = BLUETOOTH_ERROR_NOT_CONNECTED;
+ BT_DBG("Not connected");
g_error_free(error);
}
+ *is_connected = FALSE;
g_object_unref(device_proxy);
- return ret;
+ g_free(uuid);
+ return BLUETOOTH_ERROR_NONE;
}
g_variant_get(result, "(b)", is_connected);
g_free(uuid);