This commit is contained in:
rustdesk
2023-07-22 14:30:47 +08:00
parent b52795bd59
commit 07137ac566
6 changed files with 108 additions and 45 deletions

View File

@@ -89,7 +89,9 @@ impl RendezvousMediator {
for host in servers.clone() {
let server = server.clone();
futs.push(tokio::spawn(async move {
allow_err!(Self::start(server, host).await);
if let Err(err) = Self::start(server, host).await {
log::error!("rendezvous mediator error: {err}");
}
// SHOULD_EXIT here is to ensure once one exits, the others also exit.
SHOULD_EXIT.store(true, Ordering::SeqCst);
}));