From: Patrik Flykt <[email protected]>
When the last device of a technology disappears, call
__connman_technology_disabled() to properly decrement
technology->enabled.
---
src/technology.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/technology.c b/src/technology.c
index 96d64af..bed9448 100644
--- a/src/technology.c
+++ b/src/technology.c
@@ -758,10 +758,8 @@ int __connman_technology_remove_device(struct
connman_device *device)
technology->device_list = g_slist_remove(technology->device_list,
device);
- if (technology->device_list == NULL) {
- technology->state = CONNMAN_TECHNOLOGY_STATE_OFFLINE;
- state_changed(technology);
- }
+ if (technology->device_list == NULL)
+ __connman_technology_disabled(type);
return 0;
}
--
1.7.2.5
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman