add low level close

This commit is contained in:
John Smith 2023-10-23 21:22:00 -04:00 committed by Christien Rioux
parent 23f47be357
commit c70c260bb8

View File

@ -401,6 +401,12 @@ impl NetworkConnection {
connection_manager
.report_connection_finished(connection_id)
.await;
// Close the low level socket
if let Err(e) = protocol_connection.close().await {
log_net!(debug "Protocol connection close error: {}", e);
}
}.instrument(trace_span!("process_connection")))
}