Don't send signals for unregistered networks
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 7 Jan 2009 01:18:20 +0000 (02:18 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 7 Jan 2009 01:18:20 +0000 (02:18 +0100)
src/network.c

index a4f777e..59c3e47 100644 (file)
@@ -593,6 +593,9 @@ int connman_network_set_connected(struct connman_network *network,
 
        network->connected = connected;
 
+       if (network->registered == FALSE)
+               return 0;
+
        signal = dbus_message_new_signal(network->element.path,
                                CONNMAN_NETWORK_INTERFACE, "PropertyChanged");
        if (signal == NULL)