summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tethering.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tethering.c b/src/tethering.c
index 31ce0de4..762bf1a3 100644
--- a/src/tethering.c
+++ b/src/tethering.c
@@ -324,7 +324,7 @@ void __connman_tethering_set_disabled(void)
DBG("enabled %d", tethering_enabled - 1);
- if (g_atomic_int_dec_and_test(&tethering_enabled) == 0) {
+ if (g_atomic_int_dec_and_test(&tethering_enabled) == TRUE) {
disable_nat(default_interface);
dhcp_server_stop(tethering_dhcp_server);