Avoid using Lwt.join on listening threads

Lwt.join only reports an error if *both* threads fail.
This commit is contained in:
Thomas Leonard 2016-10-01 10:47:19 +01:00
parent 9c33da3bfd
commit 79092e1463

View File

@ -26,7 +26,7 @@ module Main (Clock : V1.CLOCK) = struct
~client_eth
~uplink:(Uplink.interface uplink) in
(* Handle packets from both networks *)
Lwt.join [
Lwt.choose [
Client_net.listen router;
Uplink.listen uplink router
]