summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2013-05-20 15:37:23 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-05-21 08:41:11 +0300
commit12321b24798071b79ad49ba2a7786e007b345946 (patch)
tree393a66369819ea650fb88f4ecdbbed72be179901 /src
parent600af9c810f3e4469b506f4f9ee7ce62804f94e5 (diff)
downloadconnman-12321b24798071b79ad49ba2a7786e007b345946.tar.gz
connman-12321b24798071b79ad49ba2a7786e007b345946.tar.bz2
connman-12321b24798071b79ad49ba2a7786e007b345946.zip
service: Restart timeserver polling only for the default service
When timeservers are set, recreate timeserver polling list only if the service is the the default one.
Diffstat (limited to 'src')
-rw-r--r--src/service.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c
index bba548e9..9e79b039 100644
--- a/src/service.c
+++ b/src/service.c
@@ -3210,7 +3210,9 @@ static DBusMessage *set_property(DBusConnection *conn,
service_save(service);
timeservers_configuration_changed(service);
- __connman_timeserver_sync(service);
+ if (service == __connman_service_get_default())
+ __connman_timeserver_sync(service);
+
} else if (g_str_equal(name, "Domains.Configuration") == TRUE) {
DBusMessageIter entry;
GString *str;