summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tethering.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tethering.c b/src/tethering.c
index e8d09c07..29151943 100644
--- a/src/tethering.c
+++ b/src/tethering.c
@@ -349,13 +349,13 @@ int __connman_tethering_set_status(connman_bool_t status)
if (status == tethering_status)
return -EALREADY;
+ tethering_status = status;
+
if (status == TRUE)
__connman_technology_enable_tethering(BRIDGE_NAME);
else
__connman_technology_disable_tethering(BRIDGE_NAME);
- tethering_status = status;
-
return 0;
}