From: Marcel Holtmann Date: Tue, 7 Jul 2009 18:53:57 +0000 (-0700) Subject: Don't update service details if network is already connected X-Git-Tag: accepted/2.0alpha-wayland/20121110.002834~3595 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=471f4192023866e5fa3ff26ba49f33c9acf441b6;p=profile%2Fivi%2Fconnman.git Don't update service details if network is already connected --- diff --git a/src/service.c b/src/service.c index 9fefac8..d511618 100644 --- a/src/service.c +++ b/src/service.c @@ -1341,9 +1341,16 @@ static void update_from_network(struct connman_service *service, struct connman_network *network) { connman_uint8_t strength = service->strength; + connman_bool_t connected = FALSE; GSequenceIter *iter; const char *str; + if (service->network != NULL) + connected = connman_network_get_connected(service->network); + + if (connected == TRUE) + return; + str = connman_network_get_string(network, "Name"); if (str != NULL) { g_free(service->name);