If tethering is active when device is removed, then shutdown
tethering cleanly so that tether interface and bridge are
properly removed.
---
 src/technology.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/technology.c b/src/technology.c
index f214367..10e6132 100644
--- a/src/technology.c
+++ b/src/technology.c
@@ -1367,6 +1367,10 @@ int __connman_technology_remove_device(struct 
connman_device *device)
 
        technology->device_list = g_slist_remove(technology->device_list,
                                                                device);
+
+       if (technology->tethering == TRUE)
+               set_tethering(technology, FALSE);
+
        technology_put(technology);
 
        return 0;
-- 
1.7.11.7

_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to