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:
parent
7b68399ecf
commit
dfbd371658
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user