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:
35b6362
)
Run auto-connect once service goes into idle state and reconnect is enabled
author
Martin Xu
<martin.xu@intel.com>
Fri, 23 Oct 2009 10:38:40 +0000
(18:38 +0800)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 26 Oct 2009 17:03:55 +0000
(
02:03
+0900)
src/service.c
patch
|
blob
|
history
diff --git
a/src/service.c
b/src/service.c
index
4dbfe4a
..
3a47c85
100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-1436,6
+1436,14
@@
int __connman_service_indicate_state(struct connman_service *service,
service->state = state;
state_changed(service);
+ if (state == CONNMAN_SERVICE_STATE_IDLE) {
+ connman_bool_t reconnect;
+
+ reconnect = get_reconnect_state(service);
+ if (reconnect == TRUE)
+ __connman_service_auto_connect();
+ }
+
if (state == CONNMAN_SERVICE_STATE_READY) {
set_reconnect_state(service, TRUE);