Skip to content

Commit

Permalink
Merge branch 'jb48911' into 'master'
Browse files Browse the repository at this point in the history
Don't try to connect HFP AG if bluetooth service is not available.

See merge request mer-core/ofono!276
  • Loading branch information
jusa committed Nov 12, 2020
2 parents f56c8a3 + d3d7768 commit 6976366
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ofono/plugins/hfp_ag_bluez5.c
Expand Up @@ -545,8 +545,8 @@ static int hfp_ag_init(void)
{
DBusConnection *conn = ofono_dbus_get_connection();

hfp_ag_enable(conn);

/* g_dbus_add_service_watch immediately checks for bluetooth service
* and calls connect callback if the service exists. */
service_watch_id = g_dbus_add_service_watch(conn, "org.bluez",
bluez_connect_cb,
bluez_disconnect_cb,
Expand Down

0 comments on commit 6976366

Please sign in to comment.