projects
/
profile
/
ivi
/
pulseaudio-panda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e4eef2
)
bluetooth: Remove the right match in the proximity module.
author
Tanu Kaskinen
<tanuk@iki.fi>
Sun, 1 Jan 2012 17:44:27 +0000
(19:44 +0200)
committer
Tanu Kaskinen
<tanuk@iki.fi>
Sat, 28 Jan 2012 12:16:16 +0000
(14:16 +0200)
The original intention of this code was probably that if
adding filter1 succeeded but adding filter2 failed, then
filter1 should be removed so that either both or none of the
filters get added.
src/modules/bluetooth/module-bluetooth-proximity.c
patch
|
blob
|
history
diff --git
a/src/modules/bluetooth/module-bluetooth-proximity.c
b/src/modules/bluetooth/module-bluetooth-proximity.c
index
7560f5a
..
9ba3fd8
100644
(file)
--- a/
src/modules/bluetooth/module-bluetooth-proximity.c
+++ b/
src/modules/bluetooth/module-bluetooth-proximity.c
@@
-352,7
+352,7
@@
static int add_matches(struct userdata *u, pa_bool_t add) {
if (dbus_error_is_set(&e)) {
pa_log("dbus_bus_add_match(%s) failed: %s", filter2, e.message);
- dbus_bus_remove_match(pa_dbus_connection_get(u->dbus_connection), filter
2
, NULL);
+ dbus_bus_remove_match(pa_dbus_connection_get(u->dbus_connection), filter
1
, NULL);
goto finish;
}
} else