Fix inconsistencies
This commit is contained in:
@@ -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(())
|
||||
|
||||
Reference in New Issue
Block a user