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:
Luiz Augusto von Dentz 2017-05-04 12:47:58 +02:00 committed by Georg Chini
parent 4e3aa53a3f
commit fe43e72604

View file

@ -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"));