From a26a66263673f9c91f71a4e915bd25f9d3e0afc0 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 8 Mar 2009 16:25:41 +0100 Subject: [PATCH] Fix connected state change handling --- src/network.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/network.c b/src/network.c index 66158e9..e0f0fa8 100644 --- a/src/network.c +++ b/src/network.c @@ -658,7 +658,7 @@ int connman_network_set_connected(struct connman_network *network, network->connected = connected; if (network->registered == FALSE) - return 0; + goto connected; signal = dbus_message_new_signal(network->element.path, CONNMAN_NETWORK_INTERFACE, "PropertyChanged"); @@ -676,6 +676,7 @@ int connman_network_set_connected(struct connman_network *network, g_dbus_send_message(connection, signal); +connected: if (connected == TRUE) { struct connman_element *element; enum connman_element_type type = CONNMAN_ELEMENT_TYPE_UNKNOWN; -- 2.7.4