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:
6ba6bc8
)
Reset location->result when disconnecting.
author
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 25 Mar 2010 15:02:23 +0000
(16:02 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 25 Mar 2010 15:04:08 +0000
(16:04 +0100)
If result is not reset, the service state is no longer indicated after a
connect/disconnect cycle.
src/location.c
patch
|
blob
|
history
diff --git
a/src/location.c
b/src/location.c
index
8b48845
..
2331d98
100644
(file)
--- a/
src/location.c
+++ b/
src/location.c
@@
-257,6
+257,8
@@
int __connman_location_finish(struct connman_service *service)
if (location == NULL)
return -EINVAL;
+ location->result = CONNMAN_LOCATION_RESULT_UNKNOWN;
+
if (location->driver) {
location->driver->finish(location);
location->driver = NULL;