Fix the issue of media agent can't be registered 40/22940/1
authorwu zheng <wu.zheng@intel.com>
Fri, 13 Jun 2014 09:43:21 +0000 (05:43 -0400)
committerwu zheng <wu.zheng@intel.com>
Fri, 13 Jun 2014 09:43:21 +0000 (05:43 -0400)
request_name_on_dbus can't get name two times.
Therefore, add the patch.

Change-Id: I9929524c9289044e7f3c14b09f5f63166ea27675
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
capi/bluetooth.c

index f132153..37f9be6 100644 (file)
@@ -3535,6 +3535,9 @@ static int request_name_on_dbus(const char *name)
        guint32 request_name_reply;
        GError *error = NULL;
 
+       if (bluetooth_agent_id || profile_id)
+               return 0;
+
        connection = get_system_dbus_connect();
        if (connection == NULL)
                return -1;