projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffd7c19
)
Just return success when value already set in SetProperty.
author
Andrzej Zaborowski
<andrew.zaborowski@intel.com>
Sat, 24 Oct 2009 09:27:23 +0000
(11:27 +0200)
committer
Denis Kenzior
<denkenz@gmail.com>
Sat, 24 Oct 2009 15:27:06 +0000
(10:27 -0500)
src/gprs.c
patch
|
blob
|
history
diff --git
a/src/gprs.c
b/src/gprs.c
index
fb08d9a
..
1827ceb
100644
(file)
--- a/
src/gprs.c
+++ b/
src/gprs.c
@@
-661,6
+661,9
@@
static DBusMessage *gprs_set_property(DBusConnection *conn,
dbus_message_iter_get_basic(&var, &value);
+ if (gprs->roaming_allowed == (ofono_bool_t) value)
+ return dbus_message_new_method_return(msg);
+
gprs->roaming_allowed = value;
gprs_netreg_update(gprs);
} else if (!strcmp(property, "Powered")) {
@@
-672,6
+675,9
@@
static DBusMessage *gprs_set_property(DBusConnection *conn,
dbus_message_iter_get_basic(&var, &value);
+ if (gprs->powered == (ofono_bool_t) value)
+ return dbus_message_new_method_return(msg);
+
gprs->powered = value;
gprs_netreg_update(gprs);
} else