mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-29 15:14:31 +08:00
Fix SCO connection error propagation
This commit is contained in:
parent
4ebb87203d
commit
fa2686f9bf
@ -574,10 +574,14 @@ static void sco_connect_cb(GIOChannel *chan, GError *err, gpointer user_data)
|
||||
if (err) {
|
||||
error("%s", err->message);
|
||||
|
||||
if (p && p->msg)
|
||||
error_connection_attempt_failed(dev->conn, p->msg, p->err);
|
||||
|
||||
pending_connect_finalize(dev);
|
||||
if (p != NULL) {
|
||||
p->err = -errno;
|
||||
if (p->msg)
|
||||
error_connection_attempt_failed(dev->conn,
|
||||
p->msg,
|
||||
p->err);
|
||||
pending_connect_finalize(dev);
|
||||
}
|
||||
|
||||
if (hs->rfcomm)
|
||||
headset_set_state(dev, HEADSET_STATE_CONNECTED);
|
||||
|
Loading…
Reference in New Issue
Block a user