Call connect function if service is present
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 23 Nov 2008 11:28:29 +0000 (12:28 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 23 Nov 2008 11:28:29 +0000 (12:28 +0100)
plugins/bluetooth.c

index d519ac9..6b0b69a 100644 (file)
@@ -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;
 }