From df0c916608230681ac54f5aefb7df0e5cc39dc50 Mon Sep 17 00:00:00 2001 From: Martin Xu Date: Wed, 8 Jul 2009 13:33:24 +0800 Subject: [PATCH] Don't update network details of ready or connecting services --- src/service.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/service.c b/src/service.c index 56e4612..06e8551 100644 --- a/src/service.c +++ b/src/service.c @@ -1344,14 +1344,13 @@ 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 (service->state == CONNMAN_SERVICE_STATE_READY) + return; - if (connected == TRUE) + if (is_connecting(service) == TRUE) return; str = connman_network_get_string(network, "Name"); -- 2.7.4