projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eadec85
)
Only allow service resorting when they are in the same state
author
Marcel Holtmann
<marcel@holtmann.org>
Fri, 7 Aug 2009 17:04:49 +0000
(10:04 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 7 Aug 2009 17:04:49 +0000
(10:04 -0700)
src/service.c
patch
|
blob
|
history
diff --git
a/src/service.c
b/src/service.c
index
16b6d7e
..
f990e29
100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-804,6
+804,9
@@
static DBusMessage *move_before(DBusConnection *conn,
DBG("target %s", target->identifier);
+ if (target->state != service->state)
+ return __connman_error_invalid_service(msg);
+
g_get_current_time(&service->modified);
__connman_storage_save_service(service);
@@
-838,6
+841,9
@@
static DBusMessage *move_after(DBusConnection *conn,
DBG("target %s", target->identifier);
+ if (target->state != service->state)
+ return __connman_error_invalid_service(msg);
+
g_get_current_time(&service->modified);
__connman_storage_save_service(service);