From 16158acfa9fa1f3bf13496644f4316dceb743f3c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 16 Jul 2020 17:10:24 +0800 Subject: [PATCH] analyzer: close connection gracefully --- src/runtime/src/analyzer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/src/analyzer.rs b/src/runtime/src/analyzer.rs index 9e96116f..44b153f9 100644 --- a/src/runtime/src/analyzer.rs +++ b/src/runtime/src/analyzer.rs @@ -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; } }); }