summaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-10-01 12:16:16 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-10-03 18:07:07 -0300
commit20f68bcc461fd20926f8339c97217720f94d57df (patch)
treebf5708f901ef9ee911955adcffccfd4de593d665 /src/modules
parent04677cb9259126ae3f63878963583b7af34daf69 (diff)
Fix Connected signal handler.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/bluetooth/module-bluetooth-discover.c8
1 files changed, 2 insertions, 6 deletions
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);