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
@@ -31,8 +31,8 @@ impl TerminalClient {
message: pulse_sdk::terminal::TerminalClientMessage,
) -> tokio::io::Result<()> {
let msg = map_postcard_err(postcard::to_allocvec(&message))?;
self.writer.write(&msg.len().to_le_bytes()).await?;
self.writer.write(&msg).await?;
self.writer.write_all(&msg.len().to_le_bytes()).await?;
self.writer.write_all(&msg).await?;
self.writer.flush().await?;
Ok(())