mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-05-04 17:36:12 +02:00
unetmsg: fix variable shadowing bug in network_rx_cleanup_state()
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>
This commit is contained in:
parent
b2c0182f26
commit
e782341848
@ -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…
x
Reference in New Issue
Block a user