Skip to content

Commit 298bc75

Browse files
agu-zConradIrwin
andcommitted
Flush after sending message
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
1 parent 070b9fd commit 298bc75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rust/acp.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ where
304304
log::trace!("send: {}", String::from_utf8_lossy(&outgoing_line));
305305
outgoing_line.push(b'\n');
306306
outgoing_bytes.write_all(&outgoing_line).await.ok();
307+
outgoing_bytes.flush().await.ok();
307308
} else {
308309
break;
309310
}

0 commit comments

Comments
 (0)