This changes the connected state to be only sent once a transport is
open, before this was done right after the signalling was connected but
this reflect in the audio HAL side attempting to open a stream while
with possible no transport available.
}
}
- bt_a2dp_notify_state(dev, HAL_A2DP_STATE_CONNECTED);
-
return;
failed:
g_io_channel_unref(dev->io);
dev->io = NULL;
}
+
+ bt_a2dp_notify_state(dev, HAL_A2DP_STATE_CONNECTED);
}
static void connect_cb(GIOChannel *chan, GError *err, gpointer user_data)