summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Xu <martin.xu@intel.com>2009-07-10 14:17:34 +0800
committerMarcel Holtmann <marcel@holtmann.org>2009-07-09 23:52:30 -0700
commit43d62d93d4c69284051939114daad35c867fd54a (patch)
tree0cf0b24ada520211d0553df43a08c7b129460dd2
parent1ef7930086f2d99bbaa523609fcdb8cc47753356 (diff)
downloadconnman-43d62d93d4c69284051939114daad35c867fd54a.tar.gz
connman-43d62d93d4c69284051939114daad35c867fd54a.tar.bz2
connman-43d62d93d4c69284051939114daad35c867fd54a.zip
Set idle state after disconnecting device
-rw-r--r--src/device.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index e50e9f04..afad14c3 100644
--- a/src/device.c
+++ b/src/device.c
@@ -174,9 +174,15 @@ static int set_connected(struct connman_device *device,
CONNMAN_SERVICE_STATE_CONFIGURATION);
}
} else {
+ struct connman_service *service;
+
connman_element_unregister_children(&device->element);
device->disconnected = TRUE;
+
+ service = __connman_service_lookup_from_device(device);
+ __connman_service_indicate_state(service,
+ CONNMAN_SERVICE_STATE_IDLE);
}
return 0;