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 29eb9cacb897fed25538eb5ca31d003e3ab7dddd..a0dafc67226946e7bce7260e694380533f1cb891 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);