spa: bluez: dbus: do not call GetManagedObjects() again

If a reply to a previous GetManagedObjects() call have been
received, and there is no reason to call it again, do not do it.
This commit is contained in:
Barnabás Pőcze 2022-10-08 00:57:49 +02:00
parent 9dd1c78f50
commit 008d836608

View file

@ -4302,6 +4302,9 @@ static void get_managed_objects_reply(DBusPendingCall *pending, void *user_data)
static void get_managed_objects(struct spa_bt_monitor *monitor) static void get_managed_objects(struct spa_bt_monitor *monitor)
{ {
if (monitor->objects_listed)
return;
DBusMessage *m; DBusMessage *m;
DBusPendingCall *call; DBusPendingCall *call;