连接通过关闭同时关闭tap

This commit is contained in:
lubeilin
2023-09-24 13:42:09 +08:00
parent 92eea536f8
commit 73a2c31854
+3
View File
@@ -139,6 +139,9 @@ fn start_simple(
) -> io::Result<()> {
let mut buf = [0; 4096];
loop {
if sender.is_close() {
return Ok(());
}
let len = device_reader.read(&mut buf)?;
if let Err(e) = handle(
&mut buf,