summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2013-05-17 10:40:30 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-05-20 12:37:22 +0300
commit55245980f04ee87de0a40d6ef1188a5d51561750 (patch)
tree47c61542d57e9ea877bbe7b555b1fcb82325c865 /src
parentbd086f6ab14d5f59d170dc51e0c41e4d97705027 (diff)
downloadconnman-55245980f04ee87de0a40d6ef1188a5d51561750.tar.gz
connman-55245980f04ee87de0a40d6ef1188a5d51561750.tar.bz2
connman-55245980f04ee87de0a40d6ef1188a5d51561750.zip
timeserver: Check the time update method
If the time update method is manual, no NTP time servers are returned.
Diffstat (limited to 'src')
-rw-r--r--src/timeserver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/timeserver.c b/src/timeserver.c
index f934b586..970b8eba 100644
--- a/src/timeserver.c
+++ b/src/timeserver.c
@@ -182,6 +182,9 @@ GSList *__connman_timeserver_get_all(struct connman_service *service)
char **fallback_ts;
int index, i;
+ if (__connman_clock_timeupdates() == TIME_UPDATES_MANUAL)
+ return NULL;
+
service_ts_config = connman_service_get_timeservers_config(service);
/* First add Service Timeservers.Configuration to the list */