From 9697704932ef764c8d2c37232dd53d5ab2bd68e1 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Mon, 20 Jan 2025 08:57:55 +0100 Subject: [PATCH] MINOR: tevt/stconn: Be more accurate to report shutw events In se_shutdown() a SE termination event is reported while the shutw stream event is reported in sc_app_shut_conn(). --- src/stconn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stconn.c b/src/stconn.c index ef149c573b..3412c42bc8 100644 --- a/src/stconn.c +++ b/src/stconn.c @@ -147,7 +147,7 @@ void se_shutdown(struct sedesc *sedesc, enum se_shut_mode mode) unsigned int flags = 0; if ((mode & (SE_SHW_SILENT|SE_SHW_NORMAL)) && !se_fl_test(sedesc, SE_FL_SHW)) { - sc_report_term_evt(sedesc->sc, tevt_loc_strm, tevt_type_shutw); + se_report_term_evt(sedesc, se_tevt_type_shutw); flags |= (mode & SE_SHW_NORMAL) ? SE_FL_SHWN : SE_FL_SHWS; } if ((mode & (SE_SHR_RESET|SE_SHR_DRAIN)) && !se_fl_test(sedesc, SE_FL_SHR)) @@ -785,6 +785,7 @@ static void sc_app_shut_conn(struct stconn *sc) sc->flags |= SC_FL_SHUT_DONE; oc->flags |= CF_WRITE_EVENT; sc_set_hcto(sc); + sc_report_term_evt(sedesc->sc, tevt_loc_strm, tevt_type_shutw); switch (sc->state) { case SC_ST_RDY: -- 2.47.3