summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Xu <martin.xu@intel.com>2009-07-08 13:33:24 +0800
committerMarcel Holtmann <marcel@holtmann.org>2009-07-07 23:08:33 -0700
commitdf0c916608230681ac54f5aefb7df0e5cc39dc50 (patch)
tree03a3a2b0e0f3e827f5156da81720de5178a7578a
parentef3294d0c9c7841992d594772c4c60948efef731 (diff)
downloadconnman-df0c916608230681ac54f5aefb7df0e5cc39dc50.tar.gz
connman-df0c916608230681ac54f5aefb7df0e5cc39dc50.tar.bz2
connman-df0c916608230681ac54f5aefb7df0e5cc39dc50.zip
Don't update network details of ready or connecting services
-rw-r--r--src/service.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/service.c b/src/service.c
index 56e4612e..06e8551e 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");