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 committed 2026-02-16 08:07:46 +00:00
1 parent 7b68399ecf
commit dfbd371658
1 file changed
-1
@@ -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)