From: Guoqiang Liu <[email protected]>
Make sure that all the features of the bridge are kept enabled as
long as needed.
---
src/tethering.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/tethering.c b/src/tethering.c
index 6a9690b..c7e17f5 100644
--- a/src/tethering.c
+++ b/src/tethering.c
@@ -293,14 +293,14 @@ void __connman_tethering_set_disabled(void)
DBG("enabled %d", tethering_enabled - 1);
+ if (__sync_fetch_and_sub(&tethering_enabled, 1) != 1)
+ return;
+
__connman_ipv6pd_cleanup();
index = connman_inet_ifindex(BRIDGE_NAME);
__connman_dnsproxy_remove_listener(index);
- if (__sync_fetch_and_sub(&tethering_enabled, 1) != 1)
- return;
-
__connman_nat_disable(BRIDGE_NAME);
dhcp_server_stop(tethering_dhcp_server);
--
1.7.9.5
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman