summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2012-10-17 10:34:42 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-10-18 10:27:13 (GMT)
commit288e8833a4c685a0a039770f08ed13bb64b20360 (patch)
tree7ed05e10691b857f856b694382ee64755de3acdd
parent23dad34ac87ef49184ceff697bff77aba949f48f (diff)
downloadconnman-288e8833a4c685a0a039770f08ed13bb64b20360.zip
connman-288e8833a4c685a0a039770f08ed13bb64b20360.tar.gz
connman-288e8833a4c685a0a039770f08ed13bb64b20360.tar.bz2
service: Clear user connected flag on disconnect
Remember whether the service was connected by the user via D-Bus until the service gets disconnected.
-rw-r--r--src/service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/service.c b/src/service.c
index 8857a47..a027b3e 100644
--- a/src/service.c
+++ b/src/service.c
@@ -5065,8 +5065,6 @@ static int service_indicate_state(struct connman_service *service)
reply_pending(service, 0);
- service->userconnect = FALSE;
-
g_get_current_time(&service->modified);
service_save(service);
@@ -5714,6 +5712,8 @@ int __connman_service_disconnect(struct connman_service *service)
DBG("service %p", service);
+ service->userconnect = FALSE;
+
__connman_agent_cancel(service);
if (service->network != NULL) {