service: Send signal only if immutable flag value changes
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Tue, 5 Mar 2013 14:06:19 +0000 (16:06 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 8 Mar 2013 11:09:30 +0000 (13:09 +0200)
src/service.c

index edc6ef3..53a839c 100644 (file)
@@ -4722,6 +4722,10 @@ int __connman_service_set_immutable(struct connman_service *service,
 {
        if (service->hidden == TRUE)
                return -EOPNOTSUPP;
+
+       if (service->immutable == immutable)
+               return 0;
+
        service->immutable = immutable;
 
        immutable_changed(service);