Semi working multi client system

This commit is contained in:
2025-08-13 21:30:52 +02:00
parent a3884092ba
commit ecfb279fcd
3 changed files with 43 additions and 26 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ impl GhostClient {
pub fn read_bytes(&mut self, size: usize) -> std::io::Result<Vec<u8>> {
let mut buf = vec![0u8; size];
let n = self.0.read(&mut buf)?;
let n = self.read(&mut buf)?;
buf.truncate(n);
Ok(buf)
}