diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-11-24 15:36:56 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-11-24 15:36:56 +0100 |
commit | 31f83e0d8ffb3b0ed002ab9709d114e8e237d398 (patch) | |
tree | 1782b9f68e7bd496b635ee81ea34121faa3929c7 /src | |
parent | 8ab3e61d98b6cdda739033aa725fd43d447a8a2c (diff) | |
download | connman-31f83e0d8ffb3b0ed002ab9709d114e8e237d398.tar.gz connman-31f83e0d8ffb3b0ed002ab9709d114e8e237d398.tar.bz2 connman-31f83e0d8ffb3b0ed002ab9709d114e8e237d398.zip |
tethering: Properly check for tethering refcount hitting 0
Diffstat (limited to 'src')
-rw-r--r-- | src/tethering.c | 2 |
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); |