summaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-05-31 15:09:28 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2010-05-31 17:39:56 +0200
commitec6dc19bbeb4c93e951ba5419ccf6768d5811ae6 (patch)
tree1673a4b201f6f6cdc1d5277a5c2821cb569f9d5a /src/service.c
parentdba90159b8bf8f065fcbce48432ef5da36a0c5ce (diff)
downloadconnman-ec6dc19bbeb4c93e951ba5419ccf6768d5811ae6.tar.gz
connman-ec6dc19bbeb4c93e951ba5419ccf6768d5811ae6.tar.bz2
connman-ec6dc19bbeb4c93e951ba5419ccf6768d5811ae6.zip
ntpd plugin
The ntpd plugin triggers an ntpd -q task whenever a service goes online. It either uses the meego ntp service or the one it potentially fetches from a DHCP response.
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index d9d3fafe..1d4cde38 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1901,6 +1901,9 @@ int __connman_service_indicate_state(struct connman_service *service,
service->state = state;
state_changed(service);
+ if (state == CONNMAN_SERVICE_STATE_ONLINE)
+ connman_timeserver_sync();
+
if (state == CONNMAN_SERVICE_STATE_IDLE) {
connman_bool_t reconnect;