diff --git a/pueue_lib/src/network/protocol.rs b/pueue_lib/src/network/protocol.rs index 68a21c6a..c598a192 100644 --- a/pueue_lib/src/network/protocol.rs +++ b/pueue_lib/src/network/protocol.rs @@ -56,6 +56,8 @@ pub async fn send_bytes(payload: &[u8], stream: &mut GenericStream) -> Result<() .map_err(|err| Error::IoError("sending payload chunk".to_string(), err))?; } + stream.flush().await?; + Ok(()) }