From 20f68bcc461fd20926f8339c97217720f94d57df Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 1 Oct 2008 12:16:16 -0300 Subject: Fix Connected signal handler. --- src/modules/bluetooth/module-bluetooth-discover.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/modules/bluetooth/module-bluetooth-discover.c') diff --git a/src/modules/bluetooth/module-bluetooth-discover.c b/src/modules/bluetooth/module-bluetooth-discover.c index 90c50dab..985a1d21 100644 --- a/src/modules/bluetooth/module-bluetooth-discover.c +++ b/src/modules/bluetooth/module-bluetooth-discover.c @@ -831,14 +831,10 @@ static DBusHandlerResult filter_cb(DBusConnection *bus, DBusMessage *msg, void * } else if (dbus_message_is_signal(msg, "org.bluez.Headset", "Connected") || dbus_message_is_signal(msg, "org.bluez.AudioSink", "Connected")) { - if (!dbus_message_iter_init(msg, &arg_i)) - pa_log("dbus: message has no parameters"); - else { - struct device *d; + struct device *d; - if ((d = device_find(u, dbus_message_get_path(msg)))) + if ((d = device_find(u, dbus_message_get_path(msg)))) load_module_for_device(u, d); - } } dbus_error_free(&err); -- cgit