mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
bluetooth: ofono: Don't attempt to connect if fd is ready
If SCO fd is already set don't attempt to connect again.
This commit is contained in:
parent
4e3aa53a3f
commit
fe43e72604
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ static int hf_audio_agent_transport_acquire(pa_bluetooth_transport *t, bool opti
|
||||||
|
|
||||||
pa_assert(card);
|
pa_assert(card);
|
||||||
|
|
||||||
if (!optional) {
|
if (!optional && card->fd < 0) {
|
||||||
DBusMessage *m;
|
DBusMessage *m;
|
||||||
|
|
||||||
pa_assert_se(m = dbus_message_new_method_call(t->owner, t->path, "org.ofono.HandsfreeAudioCard", "Connect"));
|
pa_assert_se(m = dbus_message_new_method_call(t->owner, t->path, "org.ofono.HandsfreeAudioCard", "Connect"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue