Don't send signals when powered state changes occur during probe
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 8 Mar 2009 12:09:02 +0000 (13:09 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 8 Mar 2009 12:09:02 +0000 (13:09 +0100)
src/device.c

index c107757..1657235 100644 (file)
@@ -1003,6 +1003,9 @@ int connman_device_set_powered(struct connman_device *device,
 
        device->powered = powered;
 
+       if (device->registered == FALSE)
+               return 0;
+
        signal = dbus_message_new_signal(device->element.path,
                                CONNMAN_DEVICE_INTERFACE, "PropertyChanged");
        if (signal == NULL)