projects
/
connman
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a5c248
)
Treat connection timeout the same as failures
author
Marcel Holtmann
<marcel@holtmann.org>
Fri, 15 May 2009 03:25:29 +0000
(20:25 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 15 May 2009 03:25:29 +0000
(20:25 -0700)
src/service.c
patch
|
blob
|
history
diff --git
a/src/service.c
b/src/service.c
index
05e0be8
..
c735a39
100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-301,6
+301,9
@@
static gboolean connect_timeout(gpointer user_data)
dbus_message_unref(service->pending);
service->pending = NULL;
+
+ __connman_service_indicate_state(service,
+ CONNMAN_SERVICE_STATE_FAILURE);
}
return FALSE;
@@
-704,7
+707,6
@@
int __connman_service_indicate_state(struct connman_service *service,
dbus_message_unref(service->pending);
service->pending = NULL;
}
-
}
if (state == CONNMAN_SERVICE_STATE_FAILURE) {
@@
-721,6
+723,9
@@
int __connman_service_indicate_state(struct connman_service *service,
dbus_message_unref(service->pending);
service->pending = NULL;
}
+
+ service->state = CONNMAN_SERVICE_STATE_IDLE;
+ state_changed(service);
}
return 0;