From 8ada0424e1f73834107bfcac6afefb465b53210c Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 7 Aug 2009 06:34:23 -0700 Subject: [PATCH] Ignore Bluetooth adapters that are currently down --- plugins/bluetooth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c index 29eb9ca..a0dafc6 100644 --- a/plugins/bluetooth.c +++ b/plugins/bluetooth.c @@ -633,7 +633,8 @@ update: connman_device_set_powered(device, powered); connman_device_set_scanning(device, scanning); - check_networks(device, &networks); + if (powered == TRUE) + check_networks(device, &networks); done: dbus_message_unref(reply); -- 2.7.4