mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
context: pa_context_connect() with PA_CONTEXT_NOFAIL should return 0 when waiting for PA on D-Dus
see https://bugs.freedesktop.org/show_bug.cgi?id=85011 in case NOAUTOSPAWN is set and no server has been specified, PA starts listening on DBUS for a new server, and the state is PA_CONTEXT_CONNECTING, but pa_context_connect() returns -1; it should return 0. Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
360cb6550e
commit
75355690b0
1 changed files with 5 additions and 0 deletions
|
|
@ -814,6 +814,11 @@ static int try_next_connection(pa_context *c) {
|
|||
track_pulseaudio_on_dbus(c, DBUS_BUS_SESSION, &c->session_bus);
|
||||
if (!c->system_bus)
|
||||
track_pulseaudio_on_dbus(c, DBUS_BUS_SYSTEM, &c->system_bus);
|
||||
|
||||
if (c->session_bus || c->system_bus) {
|
||||
pa_log_debug("Waiting for PA on D-Bus...");
|
||||
break;
|
||||
}
|
||||
} else
|
||||
#endif
|
||||
pa_context_fail(c, PA_ERR_CONNECTIONREFUSED);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue