unetmsg: fix reconnecting outgoing socket

Due to a typo, the rx channel was deleted after disconnect instead of tx.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2025-05-09 10:11:26 +02:00
parent 76a18ddad8
commit 41728acc77

View file

@ -334,7 +334,7 @@ function network_open_channel(net, name, peer)
let net = networks[sock_data.network]; let net = networks[sock_data.network];
let cur_data = net.tx_channels[sock_data.name]; let cur_data = net.tx_channels[sock_data.name];
if (cur_data == sock_data) if (cur_data == sock_data)
delete net.rx_channels[sock_data.name]; delete net.tx_channels[sock_data.name];
network_tx_socket_close(sock_data); network_tx_socket_close(sock_data);
}; };