network: Make sure not to checkConnection on the wireless section

As the wireless section does not contain checkConnection.
This commit is contained in:
Jasper St. Pierre 2013-08-07 06:44:38 -04:00
parent c77c01e437
commit f74567fbab

View File

@ -1571,9 +1571,10 @@ const NMApplet = new Lang.Class({
this._vpnSection.checkConnection(connection); this._vpnSection.checkConnection(connection);
} else { } else {
let devices = this._devices[section].devices; let devices = this._devices[section].devices;
for (let i = 0; i < devices.length; i++) { devices.forEach(function(wrapper) {
devices[i].checkConnection(connection); if (wrapper instanceof NMConnectionSection)
} wrapper.checkConnection(connection);
});
} }
}, },