network: Make sure not to checkConnection on the wireless section
As the wireless section does not contain checkConnection.
This commit is contained in:
parent
c77c01e437
commit
f74567fbab
@ -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);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user