Skip to content
This repository was archived by the owner on Dec 10, 2022. It is now read-only.

Commit 6082d73

Browse files
authored
Merge pull request #70 from tox-rs/fix
fix(udp): work with lan discovery disabled
2 parents 5abc248 + 807b085 commit 6082d73

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/main.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -278,14 +278,7 @@ async fn run_udp(config: &NodeConfig, dht_pk: PublicKey, dht_sk: &SecretKey, mut
278278

279279
let udp_server_future = dht_run_socket(&udp_server, socket, rx, udp_stats).map_err(Error::from);
280280

281-
let future = async move {
282-
futures::select! {
283-
res = udp_server_future.fuse() => res,
284-
res = lan_discovery_future.fuse() => res,
285-
}
286-
};
287-
288-
futures::try_join!(future, udp_onion_future)?;
281+
futures::try_join!(udp_server_future, lan_discovery_future, udp_onion_future)?;
289282

290283
Ok(())
291284
}

0 commit comments

Comments
 (0)