projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ab3e61
)
tethering: Properly check for tethering refcount hitting 0
author
Samuel Ortiz
<sameo@linux.intel.com>
Wed, 24 Nov 2010 14:36:56 +0000
(15:36 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Wed, 24 Nov 2010 14:36:56 +0000
(15:36 +0100)
src/tethering.c
patch
|
blob
|
history
diff --git
a/src/tethering.c
b/src/tethering.c
index
31ce0de
..
762bf1a
100644
(file)
--- 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);