tethering: Check for tethering_status to be FALSE when disabling it
authorSamuel Ortiz <sameo@linux.intel.com>
Sat, 13 Nov 2010 23:52:41 +0000 (00:52 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sat, 13 Nov 2010 23:52:41 +0000 (00:52 +0100)
src/tethering.c

index 4428ff8..2facc70 100644 (file)
@@ -197,7 +197,7 @@ void __connman_tethering_set_enabled(void)
 
 void __connman_tethering_set_disabled(void)
 {
-       if (tethering_status == FALSE)
+       if (tethering_status == TRUE)
                return;
 
        DBG("enabled %d", tethering_enabled - 1);