ignoring client leaves as errors
This commit is contained in:
@@ -64,6 +64,10 @@ impl TerminalServer {
|
|||||||
|
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
if let Err(err) = s.handle_client(&id, reader).await {
|
if let Err(err) = s.handle_client(&id, reader).await {
|
||||||
|
if matches!(err.kind(), tokio::io::ErrorKind::UnexpectedEof) {
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
|
||||||
s.error(
|
s.error(
|
||||||
"engine::terminal",
|
"engine::terminal",
|
||||||
&format!("Terminal connection error: {err}"),
|
&format!("Terminal connection error: {err}"),
|
||||||
|
|||||||
Reference in New Issue
Block a user