Bug 936393 - Make sure stop tethering works correctly when there are different tethering types enabled. r=vchang

This commit is contained in:
John Shih 2013-11-08 18:31:53 +08:00
parent 15e652486c
commit 5750a786bb

View File

@ -555,16 +555,8 @@ function enableNat(params, callback) {
}
function disableNat(params, callback) {
let command;
// Don't disable nat because others interface still need it.
// Send the dummy command to continue the function chain.
if ("interfaceList" in params && params.interfaceList.length > 1) {
command = DUMMY_COMMAND;
} else {
command = "nat disable " + params.internalIfname + " " +
params.externalIfname + " " + "0";
}
let command = "nat disable " + params.internalIfname + " " +
params.externalIfname + " " + "0";
return doCommand(command, callback);
}