From: Tomasz Bursztyka Date: Mon, 21 Nov 2011 08:51:42 +0000 (+0200) Subject: service: Set network_created flag only if create_hidden_wifi succeeds X-Git-Tag: 2.0_alpha~912 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb7dfb0ad723e4ac705b57c9da238ac6d4fbb88d;p=framework%2Fconnectivity%2Fconnman.git service: Set network_created flag only if create_hidden_wifi succeeds --- diff --git a/src/service.c b/src/service.c index 58b921d..4ec8d9b 100644 --- a/src/service.c +++ b/src/service.c @@ -4847,12 +4847,12 @@ int __connman_service_create_and_connect(DBusMessage *msg) if (service == NULL) { network = create_hidden_wifi(device, ssid, mode, security, group); - if (network != NULL) + if (network != NULL) { connman_network_set_group(network, group); + network_created = TRUE; + } service = lookup_by_identifier(name); - - network_created = TRUE; } g_free(name);