mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
bluez5: backend-ofono: Fix ofono blocking signals
Filter callback should return DBUS_HANDLER_RESULT_HANDLED only when signals was handled, otherwise it prevents signals to be seen by other objects. Also fix a Typo.
This commit is contained in:
parent
4fb56ee69b
commit
3e56161ee2
1 changed files with 1 additions and 3 deletions
|
|
@ -444,7 +444,7 @@ static void ofono_register_reply(DBusPendingCall *pending, void *user_data)
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
if (dbus_message_get_type(r) == DBUS_MESSAGE_TYPE_ERROR) {
|
if (dbus_message_get_type(r) == DBUS_MESSAGE_TYPE_ERROR) {
|
||||||
spa_log_error(backend->log, "RegisterProfile() failed: %s",
|
spa_log_error(backend->log, "Register() failed: %s",
|
||||||
dbus_message_get_error_name(r));
|
dbus_message_get_error_name(r));
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
|
|
@ -554,8 +554,6 @@ static DBusHandlerResult ofono_filter_cb(DBusConnection *bus, DBusMessage *m, vo
|
||||||
return ofono_audio_card_removed(backend, p);
|
return ofono_audio_card_removed(backend, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
return DBUS_HANDLER_RESULT_HANDLED;
|
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
|
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue