technology: When disabling technology, disble tethering too
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 2 Sep 2011 10:34:52 +0000 (13:34 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 12 Sep 2011 09:40:49 +0000 (11:40 +0200)
src/technology.c

index 3b24917..f8891b8 100644 (file)
@@ -925,6 +925,9 @@ int __connman_technology_disable(enum connman_service_type type, DBusMessage *ms
                goto done;
        }
 
+       if (technology->tethering == TRUE)
+               set_tethering(technology, FALSE);
+
        if (msg != NULL) {
                technology->pending_reply = dbus_message_ref(msg);
                technology->enable_persistent = FALSE;