OSDN Git Service

Don't bail out if Discovery is in progress when getting the rfcomm channel.
authorJaikumar Ganesh <jaikumar@google.com>
Tue, 25 Aug 2009 20:47:59 +0000 (13:47 -0700)
committerJaikumar Ganesh <jaikumar@google.com>
Tue, 25 Aug 2009 20:47:59 +0000 (13:47 -0700)
We should be having the SDP record in the cache. In the very rare
case, that the remote device's SDP records have changed and if a discovery
is in progress, we would have already updated the cache or if we have not
queried the device yet, we are going to fail anyways.

src/device.c

index 67a7731..71b23d5 100644 (file)
@@ -749,9 +749,6 @@ static DBusMessage *get_service_attribute_value(DBusConnection *conn,
        uint16_t attrId;
        int err;
 
-       if (device->browse)
-               return g_dbus_create_error(msg, ERROR_INTERFACE ".InProgress",
-                                               "Discover in progress");
        if (dbus_message_get_args(msg, NULL, DBUS_TYPE_STRING, &pattern,
                                        DBUS_TYPE_UINT16, &attrId,
                                        DBUS_TYPE_INVALID) == FALSE)