forked from M-Labs/nac3
1
0
Fork 0

analyzer: close connection gracefully

This commit is contained in:
Sebastien Bourdeauducq 2020-07-16 17:10:24 +08:00
parent 10a12245a3
commit 16158acfa9
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ pub fn start() {
.await
.map_err(|e| warn!("connection terminated: {:?}", e));
let _ = stream.flush().await;
let _ = stream.abort().await;
let _ = stream.close().await;
}
});
}