summaryrefslogtreecommitdiff
path: root/plugins/bluetooth.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-11-23 12:28:29 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-11-23 12:28:29 +0100
commitbed9f7d567b9a22c3c833f3b40ecd5afdc06d873 (patch)
tree54d7006cdddcfeb5297aba2b69abba210f1c66d4 /plugins/bluetooth.c
parent3c5f31a95d29fd46f9b7907d75721eb9b3d820b9 (diff)
downloadconnman-bed9f7d567b9a22c3c833f3b40ecd5afdc06d873.tar.gz
connman-bed9f7d567b9a22c3c833f3b40ecd5afdc06d873.tar.bz2
connman-bed9f7d567b9a22c3c833f3b40ecd5afdc06d873.zip
Call connect function if service is present
Diffstat (limited to 'plugins/bluetooth.c')
-rw-r--r--plugins/bluetooth.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index d519ac92..6b0b69a0 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -87,6 +87,9 @@ static int bluetooth_init(void)
return -EIO;
}
+ if (g_dbus_check_service(connection, BLUEZ_SERVICE) == TRUE)
+ bluetooth_connect(connection, NULL);
+
return 0;
}