Commit 05401c77 authored by Julian Bouzas's avatar Julian Bouzas
Browse files

m-device-activation: remove assertion in dbus device reservation API when failing to own bus

parent 522c9ea9
......@@ -373,8 +373,7 @@ wp_dbus_device_reservation_acquire (WpDbusDeviceReservation *self,
G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT : G_BUS_NAME_OWNER_FLAGS_NONE,
on_bus_acquired, on_name_acquired, on_name_lost, g_object_ref (self),
on_unowned);
g_return_val_if_fail (self->owner_id > 0, FALSE);
return TRUE;
return self->owner_id > 0;
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment