Ignore Bluetooth adapters that are currently down
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 7 Aug 2009 13:34:23 +0000 (06:34 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 7 Aug 2009 13:34:23 +0000 (06:34 -0700)
plugins/bluetooth.c

index 29eb9ca..a0dafc6 100644 (file)
@@ -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);