Skip to content

Commit

Permalink
Don't bail out if Discovery is in progress when getting the rfcomm ch…
Browse files Browse the repository at this point in the history
…annel.

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.
  • Loading branch information
Jaikumar Ganesh committed May 25, 2011
1 parent 6baa70e commit aac5e42
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/device.c
Expand Up @@ -808,9 +808,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)
Expand Down

0 comments on commit aac5e42

Please sign in to comment.