From 471f4192023866e5fa3ff26ba49f33c9acf441b6 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 7 Jul 2009 11:53:57 -0700 Subject: [PATCH] Don't update service details if network is already connected --- src/service.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 2.7.4