summaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-03-14 17:28:53 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-03-19 13:08:47 +0200
commita7d631e9612e87212ff97860b44089ccee46aed7 (patch)
treeb4394ba607485eaa014d9fbc0648b5b5eb615d9b /src/service.c
parentecefd0ab5b5d00db39ac999c18173c31164a448c (diff)
downloadconnman-a7d631e9612e87212ff97860b44089ccee46aed7.tar.gz
connman-a7d631e9612e87212ff97860b44089ccee46aed7.tar.bz2
connman-a7d631e9612e87212ff97860b44089ccee46aed7.zip
service: Check redundant default changed notify
Notify default service changed only if we actually changed the default service.
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c
index 6c8cccc1..a4f6bea3 100644
--- a/src/service.c
+++ b/src/service.c
@@ -4261,7 +4261,12 @@ int __connman_service_clear_error(struct connman_service *service)
int __connman_service_indicate_default(struct connman_service *service)
{
- DBG("service %p", service);
+ struct connman_service *current = get_default();
+
+ DBG("service %p default %p", service, current);
+
+ if (current == service)
+ return 0;
default_changed();