Fix inconsistencies

This commit is contained in:
2026-07-29 04:30:26 +02:00
parent 5f1b5c9aad
commit 90d3c59ff4
3 changed files with 22 additions and 28 deletions
+2 -2
View File
@@ -164,8 +164,8 @@ impl TerminalServer {
}
pub async fn send_to_client(client: &mut OwnedWriteHalf, msg: &[u8]) -> tokio::io::Result<()> {
client.write(&msg.len().to_le_bytes()).await?;
client.write(msg).await?;
client.write_all(&msg.len().to_le_bytes()).await?;
client.write_all(msg).await?;
client.flush().await?;
Ok(())