projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63e4ef0
)
Just update the service if it already exists
author
Marcel Holtmann
<marcel@holtmann.org>
Thu, 2 Jul 2009 14:52:22 +0000
(07:52 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 2 Jul 2009 14:52:22 +0000
(07:52 -0700)
src/service.c
patch
|
blob
|
history
diff --git
a/src/service.c
b/src/service.c
index
ab73772
..
bc25d8f
100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-1285,9
+1285,10
@@
struct connman_service *__connman_service_create_from_network(struct connman_net
const char *ident, *group;
char *name;
- if (__connman_service_lookup_from_network(network) != NULL) {
- connman_error("Service already exists");
- return NULL;
+ service = __connman_service_lookup_from_network(network);
+ if (service != NULL) {
+ update_from_network(service, network);
+ return service;
}
ident = __connman_network_get_ident(network);