mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
bluetooth: Remove the right match in the proximity module.
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.
This commit is contained in:
parent
7e4eef2179
commit
8846239be7
1 changed files with 1 additions and 1 deletions
|
|
@ -352,7 +352,7 @@ static int add_matches(struct userdata *u, pa_bool_t add) {
|
||||||
|
|
||||||
if (dbus_error_is_set(&e)) {
|
if (dbus_error_is_set(&e)) {
|
||||||
pa_log("dbus_bus_add_match(%s) failed: %s", filter2, e.message);
|
pa_log("dbus_bus_add_match(%s) failed: %s", filter2, e.message);
|
||||||
dbus_bus_remove_match(pa_dbus_connection_get(u->dbus_connection), filter2, NULL);
|
dbus_bus_remove_match(pa_dbus_connection_get(u->dbus_connection), filter1, NULL);
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue