mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-14 23:09:45 +01:00
unetmsg: fix stale network cleanup in unetd_network_update()
The condition checked !data.networks instead of !data.networks[name], making it always false since data.networks was already validated earlier in the function. Networks removed from unetd were never closed. Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
aaa2d9f1e5
commit
a2368e0f69
1 changed files with 1 additions and 1 deletions
|
|
@ -524,7 +524,7 @@ function unetd_network_update()
|
|||
}
|
||||
|
||||
for (let name in networks)
|
||||
if (!data.networks)
|
||||
if (!data.networks[name])
|
||||
network_close(name);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue