mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-28 03:37:17 +01:00
unetmsg: fix variable shadowing bug in network_rx_cleanup_state()
Some checks failed
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Some checks failed
Build all core packages / Build all core packages for selected target (push) Has been cancelled
The for-in loop variable 'name' was shadowing the function parameter,
causing remote subscription cleanup to fail when hosts disconnect.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit e782341848)
This commit is contained in:
parent
8004708f2d
commit
ec16f2532d
1 changed files with 2 additions and 2 deletions
|
|
@ -49,10 +49,10 @@ function network_socket_close(data)
|
|||
|
||||
function network_rx_cleanup_state(name)
|
||||
{
|
||||
for (let name, sub in core.remote_subscribe)
|
||||
for (let cur, sub in core.remote_subscribe)
|
||||
delete sub[name];
|
||||
|
||||
for (let name, sub in core.remote_publish)
|
||||
for (let cur, sub in core.remote_publish)
|
||||
delete sub[name];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue