From 008d836608561ac78e7afe2c6a1380c7274be0d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Sat, 8 Oct 2022 00:57:49 +0200 Subject: [PATCH] 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. --- spa/plugins/bluez5/bluez5-dbus.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spa/plugins/bluez5/bluez5-dbus.c b/spa/plugins/bluez5/bluez5-dbus.c index c7ed335fc..f367db992 100644 --- a/spa/plugins/bluez5/bluez5-dbus.c +++ b/spa/plugins/bluez5/bluez5-dbus.c @@ -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) { + if (monitor->objects_listed) + return; + DBusMessage *m; DBusPendingCall *call;