summaryrefslogtreecommitdiff
path: root/src/profile.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-07-16 10:03:28 +0200
committerMarcel Holtmann <marcel@holtmann.org>2009-07-16 10:03:28 +0200
commitd51c0bcb47e199489d8c05e3a552b477c98b0ec4 (patch)
tree9b796a3cca45f1f5f732b5c28a3ed67f99eeecac /src/profile.c
parente8f78a580ab93dfe436d5e88aaa65f4d470f017d (diff)
downloadconnman-d51c0bcb47e199489d8c05e3a552b477c98b0ec4.tar.gz
connman-d51c0bcb47e199489d8c05e3a552b477c98b0ec4.tar.bz2
connman-d51c0bcb47e199489d8c05e3a552b477c98b0ec4.zip
Some service list updates should be not delayed
Diffstat (limited to 'src/profile.c')
-rw-r--r--src/profile.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/profile.c b/src/profile.c
index 0f7c793f..f6ab24b4 100644
--- a/src/profile.c
+++ b/src/profile.c
@@ -96,7 +96,7 @@ static gboolean services_changed(gpointer user_data)
return FALSE;
}
-void __connman_profile_changed(void)
+void __connman_profile_changed(gboolean delayed)
{
DBG("");
@@ -110,6 +110,11 @@ void __connman_profile_changed(void)
return;
}
+ if (delayed == FALSE) {
+ services_changed(NULL);
+ return;
+ }
+
changed_timeout = g_timeout_add_seconds(2, services_changed, NULL);
}