Skip network status updates for quit networks

This commit is contained in:
Pavel Djundik 2018-09-19 17:48:13 +03:00
parent f1994352bd
commit 5ba0e33fb9

View File

@ -33,6 +33,11 @@ socket.on("network:options", function(data) {
socket.on("network:status", function(data) { socket.on("network:status", function(data) {
const network = vueApp.networks.find((n) => n.uuid === data.network); const network = vueApp.networks.find((n) => n.uuid === data.network);
if (!network) {
return;
}
network.status.connected = data.connected; network.status.connected = data.connected;
network.status.secure = data.secure; network.status.secure = data.secure;