summaryrefslogtreecommitdiff
path: root/src/notifier.c
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2011-11-15 18:12:17 +0100
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2011-11-15 18:12:17 +0100
commit4fa678448e73e6e87581b08f812d3f30f512e14e (patch)
tree301d45711d995810d316604a910d7140348fdecf /src/notifier.c
parentb2425856d9b2f3d23b35fa4bcf06e1f1f2986365 (diff)
downloadconnman-4fa678448e73e6e87581b08f812d3f30f512e14e.tar.gz
connman-4fa678448e73e6e87581b08f812d3f30f512e14e.tar.bz2
connman-4fa678448e73e6e87581b08f812d3f30f512e14e.zip
notifier: Remove service from hash in error case
CONNMAN_SERVICE_STATE_FAILURE should be treated in the same way as CONNMAN_SERVICE_STATE_DISCONNECT or CONNMAN_SERVICE_STATE_IDLE in __connman_notifier_service_state_changed(). This should help to reduce the "Service state machine inconsistency detected." error message.
Diffstat (limited to 'src/notifier.c')
-rw-r--r--src/notifier.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/notifier.c b/src/notifier.c
index 5ba22649..37c23a99 100644
--- a/src/notifier.c
+++ b/src/notifier.c
@@ -524,6 +524,7 @@ void __connman_notifier_service_state_changed(struct connman_service *service,
switch (state) {
case CONNMAN_SERVICE_STATE_UNKNOWN:
+ case CONNMAN_SERVICE_STATE_FAILURE:
case CONNMAN_SERVICE_STATE_DISCONNECT:
case CONNMAN_SERVICE_STATE_IDLE:
if (found == FALSE)
@@ -538,7 +539,6 @@ void __connman_notifier_service_state_changed(struct connman_service *service,
case CONNMAN_SERVICE_STATE_CONFIGURATION:
case CONNMAN_SERVICE_STATE_READY:
case CONNMAN_SERVICE_STATE_ONLINE:
- case CONNMAN_SERVICE_STATE_FAILURE:
if (found == TRUE)
break;