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:
parent
76a18ddad8
commit
41728acc77
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue