Bind beacon server only once

This commit is contained in:
Héctor Ramón Jiménez 2024-05-12 13:43:39 +02:00
parent b7c65c877d
commit e770804435
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 22 additions and 21 deletions

View file

@ -110,9 +110,11 @@ async fn run(
match send(&mut stream, output).await {
Ok(()) => {}
Err(error) => {
log::warn!(
"Error sending message to server: {error}"
);
if error.kind() != io::ErrorKind::BrokenPipe {
log::warn!(
"Error sending message to server: {error}"
);
}
break;
}
}