unetmsg: remove redundant socket close

channel.disconnect() already closes the fd via ubus_shutdown(),
so calling socket.close() afterwards is redundant and causes EBADF.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit bdc3c1a820)
This commit is contained in:
Felix Fietkau 2026-01-04 12:17:39 +00:00
parent 7b68399ecf
commit dfbd371658

View file

@ -44,7 +44,6 @@ function network_socket_close(data)
if (data.timer)
data.timer.cancel();
data.channel.disconnect();
data.socket.close();
}
function network_rx_cleanup_state(name)