diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-11-23 12:28:29 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-11-23 12:28:29 +0100 |
commit | bed9f7d567b9a22c3c833f3b40ecd5afdc06d873 (patch) | |
tree | 54d7006cdddcfeb5297aba2b69abba210f1c66d4 /plugins/bluetooth.c | |
parent | 3c5f31a95d29fd46f9b7907d75721eb9b3d820b9 (diff) | |
download | connman-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.c | 3 |
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; } |