Bug 736096 - Don't pretend we have values that we didn't successfully

get. r=cjones DONTBUILD
This commit is contained in:
Blake Kaplan 2012-03-29 17:01:36 +02:00
parent 2dd6194e06
commit 2a2658828e

View File

@ -914,7 +914,8 @@ var WifiManager = (function() {
for (var n = 0; n < networkConfigurationFields.length; ++n) { for (var n = 0; n < networkConfigurationFields.length; ++n) {
let fieldName = networkConfigurationFields[n]; let fieldName = networkConfigurationFields[n];
getNetworkVariableCommand(netId, fieldName, function(value) { getNetworkVariableCommand(netId, fieldName, function(value) {
config[fieldName] = value; if (value !== null)
config[fieldName] = value;
if (++done == networkConfigurationFields.length) if (++done == networkConfigurationFields.length)
callback(config); callback(config);
}); });