MINOR: session: use conn_full_close() instead of conn_force_close()
We simply disable tracking before calling it.
diff --git a/src/session.c b/src/session.c
index e5167c9..bc0b6d6 100644
--- a/src/session.c
+++ b/src/session.c
@@ -264,7 +264,7 @@
out_free_sess:
session_free(sess);
out_free_conn:
- cli_conn->flags &= ~CO_FL_XPRT_TRACKED;
+ conn_stop_tracking(cli_conn);
conn_xprt_close(cli_conn);
conn_free(cli_conn);
out_close:
@@ -358,7 +358,8 @@
}
/* kill the connection now */
- conn_force_close(conn);
+ conn_stop_tracking(conn);
+ conn_full_close(conn);
conn_free(conn);
listener_release(sess->listener);